set map in constructor
@@ -30,6 +30,7 @@ var _ pstore.PeerMetadata = (*memoryPeerMetadata)(nil)
func NewPeerMetadata() pstore.PeerMetadata {
return &memoryPeerMetadata{
ds: make(map[metakey]interface{}),
+ interned: make(map[string]interface{}),
}
}
