e7fcb824 by astaxie

utils: fix the safemap Items

1 parent ee9749d6
......@@ -72,5 +72,9 @@ func (m *BeeMap) Delete(k interface{}) {
func (m *BeeMap) Items() map[interface{}]interface{} {
m.lock.RLock()
defer m.lock.RUnlock()
return m.bm
r := make(map[interface{}]interface{})
for k, v := range m.bm {
r[k] = v
}
return r
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!