mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-01 04:46:10 +00:00
Add basic metrics to the indexer package. (#7250)
This follows the same model as we did in the p2p package. Rework the indexer service constructor to take a struct of arguments, that makes it easier to construct the optional settings. Deprecate but do not remove the existing constructor. Clean up node initialization a little bit.
This commit is contained in:
+2
-1
@@ -558,7 +558,8 @@ func TestNodeSetEventSink(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
indexService, eventSinks, err := createAndStartIndexerService(cfg,
|
||||
config.DefaultDBProvider, eventBus, logger, genDoc.ChainID)
|
||||
config.DefaultDBProvider, eventBus, logger, genDoc.ChainID,
|
||||
indexer.NopMetrics())
|
||||
require.NoError(t, err)
|
||||
t.Cleanup(func() { require.NoError(t, indexService.Stop()) })
|
||||
return eventSinks
|
||||
|
||||
Reference in New Issue
Block a user