no need to return error from DummyMsgIndex DI constructor

This commit is contained in:
vyzo
2023-03-29 22:13:26 +02:00
committed by Maciej Witowski
parent 682eb90654
commit cfeedc81e4
+2 -2
View File
@@ -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
}