Skip to content

Commit

Permalink
fix(chore): set back the storer name in the detail directive
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Aug 14, 2024
1 parent 9301a77 commit 5b8608d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 559 deletions.
3 changes: 2 additions & 1 deletion pkg/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ func (s *SouinBaseHandler) ServeHTTP(rw http.ResponseWriter, rq *http.Request, n
fresh, stale = currentStorer.GetMultiLevel(finalKey, req, validator)

if fresh != nil || stale != nil {
s.Configuration.GetLogger().Debugf("Found at least one valid response in the %s storage", currentStorer.Name())
storerName = currentStorer.Name()
s.Configuration.GetLogger().Debugf("Found at least one valid response in the %s storage", storerName)
break
}
}
Expand Down
16 changes: 0 additions & 16 deletions plugins/traefik/override/storage/abstractProvider_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion plugins/traefik/override/surrogate/providers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/darkweak/souin/configurationtypes"
"github.com/darkweak/souin/pkg/storage"
"github.com/darkweak/souin/pkg/storage/types"
"github.com/darkweak/souin/pkg/surrogate/providers"

Check failure on line 15 in plugins/traefik/override/surrogate/providers/common.go

View workflow job for this annotation

GitHub Actions / build-traefik-validator / Traefik

could not import github.com/darkweak/souin/pkg/surrogate/providers (-: import cycle not allowed: import stack: [github.com/darkweak/souin/plugins/traefik github.com/darkweak/souin/pkg/middleware github.com/darkweak/souin/pkg/api github.com/darkweak/souin/pkg/surrogate/providers github.com/darkweak/souin/pkg/surrogate/providers]) (typecheck)
)

const (
Expand Down Expand Up @@ -73,7 +74,7 @@ type keysRegexpInner struct {
}

type baseStorage struct {
parent SurrogateInterface
parent providers.SurrogateInterface
Storage types.Storer
Keys map[string]configurationtypes.SurrogateKeys
keysRegexp map[string]keysRegexpInner
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b8608d

Please sign in to comment.