Revert "[test]"

This reverts commit bf6bfdd930.
This commit is contained in:
maze.y2b@gmail.com 2021-12-02 20:08:28 +08:00
parent 038f973f90
commit b15a7c8b6f

View file

@ -26,7 +26,6 @@ var (
rules []C.Rule rules []C.Rule
proxies = make(map[string]C.Proxy) proxies = make(map[string]C.Proxy)
providers map[string]provider.ProxyProvider providers map[string]provider.ProxyProvider
ruleProviders map[string]provider.RuleProvider
configMux sync.RWMutex configMux sync.RWMutex
// Outbound Rule // Outbound Rule
@ -58,10 +57,9 @@ func Rules() []C.Rule {
} }
// UpdateRules handle update rules // UpdateRules handle update rules
func UpdateRules(newRules []C.Rule, rp map[string]provider.RuleProvider) { func UpdateRules(newRules []C.Rule) {
configMux.Lock() configMux.Lock()
rules = newRules rules = newRules
ruleProviders = rp
configMux.Unlock() configMux.Unlock()
} }
@ -75,10 +73,6 @@ func Providers() map[string]provider.ProxyProvider {
return providers return providers
} }
func RuleProviders() map[string]provider.RuleProvider {
return ruleProviders
}
// UpdateProxies handle update proxies // UpdateProxies handle update proxies
func UpdateProxies(newProxies map[string]C.Proxy, newProviders map[string]provider.ProxyProvider) { func UpdateProxies(newProxies map[string]C.Proxy, newProviders map[string]provider.ProxyProvider) {
configMux.Lock() configMux.Lock()