fix(surf): close the rate-limit store a router created (quick-261118-lbt)
- MemoryStore.Close stops the sweep goroutine; Attempt keeps working - Router.Close runs what the router owns (the fallback MemoryStore of BuildRouter), never a store published on the app - BuildRouter closes the router on every error return - serve closes its router and installCooler's fallback store on exit; route:list closes its router - README and rate-limiting docs describe the ownership
This commit is contained in:
@@ -45,6 +45,7 @@ scripts.`,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer r.Close()
|
||||
infos := r.Routes()
|
||||
if in != nil {
|
||||
if bonfire.FlagBool(in, jsonFlagName) {
|
||||
|
||||
Reference in New Issue
Block a user