Skip to content

Commit

Permalink
cmd/pubsub: fix pubsub ls emiting plain strings instead of JSON
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
Kubuxu committed Mar 16, 2018
1 parent 5917805 commit 42d1aa5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/commands/pubsub.go
Original file line number Diff line number Diff line change
@@ -268,11 +268,9 @@ To use, the daemon must be run with '--enable-pubsub-experiment'.
return
}

for _, topic := range n.Floodsub.GetTopics() {
res.Emit(topic)
}
cmds.EmitOnce(res, stringList{n.Floodsub.GetTopics()})
},
Type: "",
Type: stringList{},
}

var PubsubPeersCmd = &cmds.Command{

0 comments on commit 42d1aa5

Please sign in to comment.