fix linter

This commit is contained in:
Anthony Laibe 2021-10-13 14:42:02 +02:00
parent c1bdead94d
commit 0732cb9877
2 changed files with 5 additions and 1 deletions

View File

@ -17,5 +17,6 @@ lint-install:
lint:
@echo "lint"
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
test:
go test -v -failfast ./...

View File

@ -522,7 +522,10 @@ func (node *WakuNode) UnsubscribeFilter(ctx context.Context, topic string, conte
}
// Send message to full node in order to unsubscribe
node.filter.Unsubscribe(ctx, topic, contentTopics, f.PeerID)
err := node.filter.Unsubscribe(ctx, topic, contentTopics, f.PeerID)
if err != nil {
return err
}
// Iterate filter entries to remove matching content topics
// make sure we delete the content filter