Commit e7fcb824 authored by astaxie's avatar astaxie

utils: fix the safemap Items

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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment