Maybe can use sync.RWMutex to replace sync.Mutex in these scenarios
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Not a problem
Describe the solution you'd like A clear and concise description of what you want to happen. Use sync.RWMutex
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Performance improve
Additional context Add any other context or screenshots about the feature request here. https://github.com/bfenetworks/bfe/blob/develop/bfe_util/ipdict/iptable.go#L25 https://github.com/bfenetworks/bfe/blob/develop/bfe_basic/session.go#L56
Thanks for your contribution!
#872 merged