mirror of https://github.com/status-im/go-waku.git
Use new errgroup
This commit is contained in:
parent
38fc9ee8bb
commit
5353ae48f2
|
@ -188,7 +188,7 @@ func (wf *WakuFilter) FilterListener() {
|
|||
handle := func(envelope *protocol.Envelope) error { // async
|
||||
msg := envelope.Message()
|
||||
topic := envelope.PubsubTopic()
|
||||
g, _ := errgroup.WithContext(context.Background())
|
||||
g := new(errgroup.Group)
|
||||
// Each subscriber is a light node that earlier on invoked
|
||||
// a FilterRequest on this node
|
||||
for subscriber := range wf.subscribers.Items() {
|
||||
|
|
Loading…
Reference in New Issue