chore: refactor param cache (#18377)

This commit is contained in:
andig 2025-01-23 16:16:21 +01:00 • committed by GitHub
parent 07fa1b64f8
commit 9e9c15ed58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 128 additions and 146 deletions

View file

@ -197,7 +197,7 @@ func updateSmartCostLimit(site site.API) http.HandlerFunc {
}
// stateHandler returns the combined state
func stateHandler(cache *util.Cache) http.HandlerFunc {
func stateHandler(cache *util.ParamCache) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
res := cache.State(encode.NewEncoder(encode.WithDuration()))
for _, k := range ignoreState {