Skip to content

Commit

Permalink
feat: remove mutex pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Aug 30, 2024
1 parent 983e266 commit e41557f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type Aggregator struct {
l1Syncr synchronizer.Synchronizer
halted atomic.Bool

streamClientMutex *sync.Mutex
streamClientMutex sync.Mutex

profitabilityChecker aggregatorTxProfitabilityChecker
timeSendFinalProof time.Time
Expand Down Expand Up @@ -180,7 +180,7 @@ func New(
etherman: etherman,
ethTxManager: ethTxManager,
streamClient: streamClient,
streamClientMutex: &sync.Mutex{},
streamClientMutex: sync.Mutex{},
l1Syncr: l1Syncr,
profitabilityChecker: profitabilityChecker,
stateDBMutex: &sync.Mutex{},
Expand Down Expand Up @@ -278,7 +278,7 @@ func (a *Aggregator) handleRollbackBatches(rollbackData synchronizer.RollbackBat
// Stop Reading the data stream
err = a.streamClient.ExecCommandStop()
if err != nil {
log.Errorf("failed to stop data stream: %v.", err)
log.Errorf("failed to stop the data stream: %v.", err)
} else {
log.Info("Data stream client stopped")
}
Expand Down

0 comments on commit e41557f

Please sign in to comment.