组件优化

This commit is contained in:
John
2018-03-29 13:46:05 +08:00
parent 75f081c8f8
commit cbaa2386de
16 changed files with 77 additions and 58 deletions

View File

@ -163,9 +163,9 @@ func (this *StringInterfaceMap) Contains(key string) bool {
// 哈希表大小
func (this *StringInterfaceMap) Size() int {
this.mu.RLock()
len := len(this.m)
length := len(this.m)
this.mu.RUnlock()
return len
return length
}
// 哈希表是否为空