mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 10:40:26 +08:00
优化代码
This commit is contained in:
@@ -72,7 +72,7 @@ func (this *IntMap[K, V]) Has(k K) bool {
|
||||
func (this *IntMap[K, V]) Get(k K) (value V) {
|
||||
var index = this.index(k)
|
||||
this.lockers[index].RLock()
|
||||
value, _ = this.m[index][k]
|
||||
value = this.m[index][k]
|
||||
this.lockers[index].RUnlock()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user