Revert "abci: change client to use multi-reader mutexes (#6306)" (backport #7106) (#7109)

This commit is contained in:
mergify[bot]
2021-10-12 18:00:22 +02:00
committed by GitHub
parent 1dfb3451ea
commit a82cb7dcda
9 changed files with 31 additions and 32 deletions

View File

@@ -21,7 +21,7 @@ type ClientCreator interface {
// local proxy uses a mutex on an in-proc app
type localClientCreator struct {
mtx *tmsync.RWMutex
mtx *tmsync.Mutex
app types.Application
}
@@ -29,7 +29,7 @@ type localClientCreator struct {
// which will be running locally.
func NewLocalClientCreator(app types.Application) ClientCreator {
return &localClientCreator{
mtx: new(tmsync.RWMutex),
mtx: new(tmsync.Mutex),
app: app,
}
}