We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88c41bc commit dcd7c26Copy full SHA for dcd7c26
fixedlist.go
@@ -39,6 +39,8 @@ func (f *fixedList) Add(val interface{}) {
39
40
//获取数据长度
41
func (f *fixedList) Len() int {
42
+ f.RLock()
43
+ defer f.RUnlock()
44
return f.data.Len()
45
}
46
0 commit comments