From de949efcf44df0135fa250bb16c0a0acd50ccb68 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 1 Apr 2022 17:27:46 -0400 Subject: [PATCH] fix: lint --- wakuv2/waku.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wakuv2/waku.go b/wakuv2/waku.go index 0cc9aa520..9666d3872 100644 --- a/wakuv2/waku.go +++ b/wakuv2/waku.go @@ -270,7 +270,10 @@ func New(nodeKey string, cfg *Config, logger *zap.Logger, appDB *sql.DB) (*Waku, } if cfg.EnableDiscV5 { - waku.node.DiscV5().Start() + err := waku.node.DiscV5().Start() + if err != nil { + return nil, err + } } go func() {