Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

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 0b5b389 commit 47c4411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 47c4411

Please sign in to comment.