Browse Source

add missing unlock()!!!!!

pull/312/head
Chris Lu 9 years ago
parent
commit
caeffa3998
  1. 1
      go/util/concurrent_read_map.go

1
go/util/concurrent_read_map.go

@ -49,6 +49,7 @@ func (m *ConcurrentReadMap) Items() (itemsCopy []interface{}) {
for _, i := range m.items { for _, i := range m.items {
itemsCopy = append(itemsCopy, i) itemsCopy = append(itemsCopy, i)
} }
m.RUnlock()
return itemsCopy return itemsCopy
} }

Loading…
Cancel
Save