Skip to content

Commit

Permalink
set map in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Jun 1, 2019
1 parent 73b10b9 commit 74ed339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/host/peerstore/pstoremem/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ var _ pstore.PeerMetadata = (*memoryPeerMetadata)(nil)

func NewPeerMetadata() pstore.PeerMetadata {
return &memoryPeerMetadata{
ds: make(map[metakey]interface{}),
ds: make(map[metakey]interface{}),
interned: make(map[string]interface{}),
}
}

Expand Down

0 comments on commit 74ed339

Please sign in to comment.