Skip to content

Commit 70d09a9

Browse files
committed
Remove mutex locks in local client
1 parent d03254d commit 70d09a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

abci/client/local_client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ func (app *localClient) Echo(_ context.Context, msg string) (*types.ResponseEcho
8686
}
8787

8888
func (app *localClient) Info(ctx context.Context, req *types.RequestInfo) (*types.ResponseInfo, error) {
89-
app.mtx.Lock()
90-
defer app.mtx.Unlock()
89+
// app.mtx.Lock()
90+
// defer app.mtx.Unlock()
9191

9292
return app.Application.Info(ctx, req)
9393
}
@@ -100,8 +100,8 @@ func (app *localClient) CheckTx(ctx context.Context, req *types.RequestCheckTx)
100100
}
101101

102102
func (app *localClient) Query(ctx context.Context, req *types.RequestQuery) (*types.ResponseQuery, error) {
103-
app.mtx.Lock()
104-
defer app.mtx.Unlock()
103+
// app.mtx.Lock()
104+
// defer app.mtx.Unlock()
105105

106106
return app.Application.Query(ctx, req)
107107
}

0 commit comments

Comments
 (0)