Skip to content

Commit

Permalink
fix: events: use correct context for CollectEvents transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 14, 2024
1 parent a1bd8cf commit 4ace38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/events/filter/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func (ei *EventIndex) Close() error {
}

func (ei *EventIndex) CollectEvents(ctx context.Context, te *TipSetEvents, revert bool, resolver func(ctx context.Context, emitter abi.ActorID, ts *types.TipSet) (address.Address, bool)) error {
tx, err := ei.db.Begin()
tx, err := ei.db.BeginTx(ctx, nil)
if err != nil {
return xerrors.Errorf("begin transaction: %w", err)
}
Expand Down

0 comments on commit 4ace38d

Please sign in to comment.