Skip to content

Commit

Permalink
chore: Comment Begin/EndRecheckTx lock
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jan 9, 2025
1 parent 4df9287 commit a977306
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions abci/client/local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,17 @@ func (app *localClient) CheckTxSync(ctx context.Context, req *types.RequestCheck
}

func (app *localClient) BeginRecheckTxSync(ctx context.Context, req *types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) {
app.mtx.Lock()
defer app.mtx.Unlock()
// NOTE: commented out for performance. delete all after commenting out all `app.mtx`
// app.mtx.Lock()
// defer app.mtx.Unlock()

return app.Application.BeginRecheckTx(ctx, req)
}

func (app *localClient) EndRecheckTxSync(ctx context.Context, req *types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) {
app.mtx.Lock()
defer app.mtx.Unlock()
// NOTE: commented out for performance. delete all after commenting out all `app.mtx`
// app.mtx.Lock()
// defer app.mtx.Unlock()

return app.Application.EndRecheckTx(ctx, req)
}
Expand Down

0 comments on commit a977306

Please sign in to comment.