no need to return error from DummyMsgIndex DI constructor

This commit is contained in:
vyzo 2023-03-13 12:00:48 +02:00 committed by Maciej Witowski
parent 682eb90654
commit cfeedc81e4

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
}