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

Commit

Permalink
Merge pull request #81 from libp2p/fix/interned-nil-panic
Browse files Browse the repository at this point in the history
set map in constructor
  • Loading branch information
Stebalien authored Jun 1, 2019
2 parents 0b5b389 + 47c4411 commit e151165
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 e151165

Please sign in to comment.