提交 42d1aa5b 作者: Jakub Sztandera

cmd/pubsub: fix `pubsub ls` emiting plain strings instead of JSON

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 59178057
......@@ -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{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论