This commit is contained in:
Aleksandr Bezobchuk
2022-06-17 15:58:56 -04:00
parent ac01008f34
commit 30ca882a1f
+1 -1
View File
@@ -103,9 +103,9 @@ func (es *EventSink) IndexBlock(h types.EventDataNewBlockHeader) error {
return fmt.Errorf("failed to publish pubsub message: %w", err)
}
// publish EndBlock Events
buf.Reset()
// publish EndBlock Events
if err := jsonpbMarshaller.Marshal(buf, &h.ResultEndBlock); err != nil {
return fmt.Errorf("failed to JSON marshal ResultBeginBlock: %w", err)
}