From 3c945e9e3ceba6c5d939cd468c3fa4e86c156383 Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 13 Mar 2023 12:00:48 +0200 Subject: [PATCH] no need to return error from DummyMsgIndex DI constructor --- node/modules/msgindex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/modules/msgindex.go b/node/modules/msgindex.go index a758f22cf..72e9840ba 100644 --- a/node/modules/msgindex.go +++ b/node/modules/msgindex.go @@ -31,6 +31,6 @@ func MsgIndex(lc fx.Lifecycle, mctx helpers.MetricsCtx, cs *store.ChainStore, r return msgIndex, nil } -func DummyMsgIndex() (index.MsgIndex, error) { - return index.DummyMsgIndex, nil +func DummyMsgIndex() index.MsgIndex { + return index.DummyMsgIndex }