File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,16 +18,12 @@ func (proxy *Proxy) InitHotReload() error {
1818 // Add query plugins
1919 proxy .pluginsGlobals .RLock ()
2020 if proxy .pluginsGlobals .queryPlugins != nil {
21- for _ , plugin := range * proxy .pluginsGlobals .queryPlugins {
22- plugins = append (plugins , plugin )
23- }
21+ plugins = append (plugins , * proxy .pluginsGlobals .queryPlugins ... )
2422 }
2523
2624 // Add response plugins
2725 if proxy .pluginsGlobals .responsePlugins != nil {
28- for _ , plugin := range * proxy .pluginsGlobals .responsePlugins {
29- plugins = append (plugins , plugin )
30- }
26+ plugins = append (plugins , * proxy .pluginsGlobals .responsePlugins ... )
3127 }
3228 proxy .pluginsGlobals .RUnlock ()
3329
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ type CachedResponse struct {
2020
2121type CachedResponses struct {
2222 cache * sievecache.ShardedSieveCache [[32 ]byte , CachedResponse ]
23- cacheMu sync.Mutex
2423 cacheOnce sync.Once
2524}
2625
You can’t perform that action at this time.
0 commit comments