merge ranges

This commit is contained in:
hebo
2019-09-07 19:07:49 +08:00
parent c7833a9df7
commit 07d0c60086
113 changed files with 11865 additions and 95 deletions

View File

@@ -4,6 +4,11 @@ import "fmt"
// SetConfig set config by config key(name) and value
func SetConfig(key string, val interface{}) (err error) {
if key == throwPacketRate.name {
err = throwPacketRate.setVal(val)
return
}
configMapLock.Lock()
defer configMapLock.Unlock()