Skip to content

Commit

Permalink
fix(filter-subscribe): params.selectedPeer not set
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-98 committed Oct 25, 2023
1 parent 18c16de commit 0b5d133
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion waku/v2/protocol/filter/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ func (wf *WakuFilterLightNode) Subscribe(ctx context.Context, contentFilter prot
cFilter.PubsubTopic = pubSubTopic
cFilter.ContentTopics = protocol.NewContentTopicSet(cTopics...)

err := wf.request(ctx, params, pb.FilterSubscribeRequest_SUBSCRIBE, cFilter)
err := wf.request(
ctx,
&FilterSubscribeParameters{selectedPeer: selectedPeer, requestID: params.requestID},
pb.FilterSubscribeRequest_SUBSCRIBE,
cFilter,
)
if err != nil {
wf.log.Error("Failed to subscribe", zap.String("pubSubTopic", pubSubTopic), zap.Strings("contentTopics", cTopics),
zap.Error(err))
Expand Down

0 comments on commit 0b5d133

Please sign in to comment.