chore: refactor param cache (#18377)
This commit is contained in:
parent
07fa1b64f8
commit
9e9c15ed58
14 changed files with 128 additions and 146 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue