File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ require (
4
4
github.com/hashicorp/errwrap v1.0.0
5
5
github.com/hashicorp/go-multierror v1.1.0
6
6
github.com/ipfs/go-cid v0.0.5
7
- github.com/libp2p/go-libp2p-core v0.5.1
7
+ github.com/libp2p/go-libp2p-core v0.5.3
8
8
github.com/libp2p/go-libp2p-record v0.1.2
9
9
github.com/multiformats/go-multihash v0.0.13
10
10
)
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ github.com/libp2p/go-libp2p-core v0.2.5 h1:iP1PIiIrlRrGbE1fYq2918yBc5NlCH3pFuIPS
77
77
github.com/libp2p/go-libp2p-core v0.2.5 /go.mod h1:6+5zJmKhsf7yHn1RbmYDu08qDUpIUxGdqHuEZckmZOA =
78
78
github.com/libp2p/go-libp2p-core v0.5.1 h1:6Cu7WljPQtGY2krBlMoD8L/zH3tMUsCbqNFH7cZwCoI =
79
79
github.com/libp2p/go-libp2p-core v0.5.1 /go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y =
80
+ github.com/libp2p/go-libp2p-core v0.5.3 h1:b9W3w7AZR2n/YJhG8d0qPFGhGhCWKIvPuJgp4hhc4MM =
81
+ github.com/libp2p/go-libp2p-core v0.5.3 /go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y =
80
82
github.com/libp2p/go-libp2p-record v0.1.2 h1:M50VKzWnmUrk/M5/Dz99qO9Xh4vs8ijsK+7HkJvRP+0 =
81
83
github.com/libp2p/go-libp2p-record v0.1.2 /go.mod h1:pal0eNcT5nqZaTV7UGhqeGqxFgGdsU/9W//C8dqjQDk =
82
84
github.com/libp2p/go-msgio v0.0.4 /go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ =
Original file line number Diff line number Diff line change @@ -293,6 +293,10 @@ func (r Parallel) forKey(key string) Parallel {
293
293
// routers fail.
294
294
func (r Parallel ) mergeQueryEvents (ctx context.Context ) (context.Context , context.CancelFunc ) {
295
295
subCtx , cancel := context .WithCancel (ctx )
296
+ if ! routing .SubscribesToQueryEvents (ctx ) {
297
+ return subCtx , cancel
298
+ }
299
+
296
300
subCtx , evCh := routing .RegisterForQueryEvents (subCtx )
297
301
go func () {
298
302
var errEvt * routing.QueryEvent
You can’t perform that action at this time.
0 commit comments