Skip to content

Commit 5824b64

Browse files
mortellizelig
authored andcommitted
stream: dereference StreamInfoReq structure in updateSyncSubscriptions function (ethersphere#1770)
1 parent 1456b9f commit 5824b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network/stream/v2/sync_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ func (s *syncProvider) updateSyncSubscriptions(p *Peer, subBins, quitBins []int)
334334
}
335335
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
336336
defer cancel()
337-
if err := p.Send(ctx, StreamInfoReq{Streams: streams}); err != nil {
337+
if err := p.Send(ctx, &StreamInfoReq{Streams: streams}); err != nil {
338338
p.logger.Error("error establishing subsequent subscription", "err", err)
339339
p.Drop()
340340
return

0 commit comments

Comments
 (0)