We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a92036 commit aeebe48Copy full SHA for aeebe48
core/commands/pubsub.go
@@ -105,14 +105,16 @@ To use, the daemon must be run with '--enable-pubsub-experiment'.
105
106
discover, _, _ := req.Option("discover").Bool()
107
if discover {
108
- blk := blocks.NewBlock([]byte("floodsub:" + topic))
109
- cid, err := n.Blocks.AddObject(blk)
110
- if err != nil {
111
- log.Error("pubsub discovery: ", err)
112
- return
113
- }
+ go func() {
+ blk := blocks.NewBlock([]byte("floodsub:" + topic))
+ cid, err := n.Blocks.AddObject(blk)
+ if err != nil {
+ log.Error("pubsub discovery: ", err)
+ return
114
+ }
115
- connectToPubSubPeers(req.Context(), n, cid)
116
+ connectToPubSubPeers(req.Context(), n, cid)
117
+ }()
118
}
119
},
120
Marshalers: cmds.MarshalerMap{
0 commit comments