chore: fixes found in review

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-07-04 20:37:32 +00:00
parent 41993466a1
commit 364622d890
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -435,6 +435,7 @@ func (s *Server) PassChallenge(w http.ResponseWriter, r *http.Request) {
if err != nil {
lg.Error("check failed", "err", err)
s.respondWithError(w, r, fmt.Sprintf("%s: %s", localizer.T("internal_server_error"), rule.Challenge.Algorithm))
return
}
in := &challenge.ValidateInput{

View File

@ -188,9 +188,9 @@ func ParseConfig(ctx context.Context, fin io.Reader, fname string, defaultDiffic
store, err := stFac.Build(ctx, c.Store.Parameters)
if err != nil {
validationErrs = append(validationErrs, err)
} else {
result.Store = store
}
result.Store = store
case false:
validationErrs = append(validationErrs, config.ErrUnknownStoreBackend)
}

View File

@ -62,8 +62,7 @@ func (i *impl) cleanupThread(ctx context.Context) {
}
}
// NewDecayMapStore creates a simple in-memory store. This will not scale
// to multiple Anubis instances.
// New creates a simple in-memory store. This will not scale to multiple Anubis instances.
func New(ctx context.Context) store.Interface {
result := &impl{
store: decaymap.New[string, []byte](),