Skip to content

Commit

Permalink
fixup! cmd/pubsub: fix pubsub peers format brakage
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Mar 16, 2018
1 parent f8c3e11 commit 90017e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ To use, the daemon must be run with '--enable-pubsub-experiment'.
}

peers := n.Floodsub.ListPeers(topic)
list := &stringList{make([]string, len(peers), 0)}
list := &stringList{make([]string, 0, len(peers))}

for _, peer := range peers {
list.Strings = append(list.Strings, peer.Pretty())
Expand Down

0 comments on commit 90017e9

Please sign in to comment.