CapturePacketRate文档补充

This commit is contained in:
hebo
2019-12-19 11:04:17 +08:00
parent 7952d1339f
commit 41a1f0c340
3 changed files with 22 additions and 5 deletions

View File

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