Browse Source

state/indexer: close row after query (#6664)

Closes: #6661 

Note: see another error during the events indexing, guess the raw tx size exceeds the limitation?
```
3:17PM ERR failed to index block txs err="pq: index row size 2768 exceeds btree version 4 maximum 2704 for index \"tx_results_tx_result_key\"" height=5205112 module=txindex
pull/6664/merge
JayT106 4 years ago
committed by GitHub
parent
commit
e850863296
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      state/indexer/sink/psql/psql.go

+ 1
- 0
state/indexer/sink/psql/psql.go View File

@ -110,6 +110,7 @@ func (es *EventSink) IndexTxEvents(txr []*abci.TxResult) error {
if err != nil { if err != nil {
return err return err
} }
defer r.Close()
if !r.Next() { if !r.Next() {
return nil return nil


Loading…
Cancel
Save