mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-05 11:31:16 +00:00
return early if indexer is null
This commit is contained in:
@@ -83,6 +83,9 @@ func (is *Service) publish(msg pubsub.Message) error {
|
||||
if curr.Pending == 0 {
|
||||
// INDEX: We have all the transactions we expect for the current block.
|
||||
for _, sink := range is.eventSinks {
|
||||
if sink.Type() == NULL {
|
||||
return nil // if indexer is set to null return early
|
||||
}
|
||||
start := time.Now()
|
||||
if err := sink.IndexBlockEvents(is.currentBlock.header); err != nil {
|
||||
is.logger.Error("failed to index block header",
|
||||
|
||||
Reference in New Issue
Block a user