Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
stream: dereference StreamInfoReq structure in updateSyncSubscription…
Browse files Browse the repository at this point in the history
…s function (#1770)
  • Loading branch information
mortelli authored and zelig committed Sep 17, 2019
1 parent 1456b9f commit 5824b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/stream/v2/sync_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (s *syncProvider) updateSyncSubscriptions(p *Peer, subBins, quitBins []int)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
if err := p.Send(ctx, StreamInfoReq{Streams: streams}); err != nil {
if err := p.Send(ctx, &StreamInfoReq{Streams: streams}); err != nil {
p.logger.Error("error establishing subsequent subscription", "err", err)
p.Drop()
return
Expand Down

0 comments on commit 5824b64

Please sign in to comment.