fix linter (#73)

This commit is contained in:
Anthony Laibe 2021-10-13 14:48:29 +02:00 committed by GitHub
parent c1bdead94d
commit 86cf5304b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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