add doc.go and fix lint

This commit is contained in:
William Banfield
2021-08-13 14:50:30 -04:00
parent 208bf0541b
commit 677d87324d
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -11,6 +11,10 @@ import (
"github.com/tendermint/tendermint/state/indexer/sink/psql"
)
// EventSinksFromConfig constructs a slice of indexer.EventSink using the provided
// configuration.
//
//nolint:lll
func EventSinksFromConfig(cfg *config.Config, dbProvider config.DBProvider, chainID string) ([]indexer.EventSink, error) {
if len(cfg.TxIndex.Indexer) == 0 {
return []indexer.EventSink{null.NewEventSink()}, nil