From 86cf5304b242d2e9927b36792db868e19fa0abbb Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 13 Oct 2021 14:48:29 +0200 Subject: [PATCH] fix linter (#73) --- Makefile | 1 + waku/v2/node/wakunode2.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f24ef87a..b8687739 100644 --- a/Makefile +++ b/Makefile @@ -17,5 +17,6 @@ lint-install: lint: @echo "lint" @golangci-lint --exclude=SA1019 run ./... --deadline=5m + test: go test -v -failfast ./... diff --git a/waku/v2/node/wakunode2.go b/waku/v2/node/wakunode2.go index 4e91bce1..3fd4fdc8 100644 --- a/waku/v2/node/wakunode2.go +++ b/waku/v2/node/wakunode2.go @@ -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