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
|
handle := func(envelope *protocol.Envelope) error { // async
|
||||||
msg := envelope.Message()
|
msg := envelope.Message()
|
||||||
topic := envelope.PubsubTopic()
|
topic := envelope.PubsubTopic()
|
||||||
g, _ := errgroup.WithContext(context.Background())
|
g := new(errgroup.Group)
|
||||||
// Each subscriber is a light node that earlier on invoked
|
// Each subscriber is a light node that earlier on invoked
|
||||||
// a FilterRequest on this node
|
// a FilterRequest on this node
|
||||||
for subscriber := range wf.subscribers.Items() {
|
for subscriber := range wf.subscribers.Items() {
|
||||||
|
|
Loading…
Reference in New Issue