fix(OE): Remove usage of pointer in logs (#19198)

This commit is contained in:
Aleksandr Bezobchuk
2024-01-23 19:29:27 +00:00
committed by GitHub
parent 365528f872
commit 12aaa89363
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -106,10 +106,13 @@ func (oe *OptimisticExecution) Execute(req *abci.RequestProcessProposal) {
go func() {
start := time.Now()
resp, err := oe.finalizeBlockFunc(ctx, oe.request)
oe.mtx.Lock()
executionTime := time.Since(start)
oe.logger.Debug("OE finished", "duration", executionTime.String(), "height", req.Height, "hash", hex.EncodeToString(req.Hash))
oe.logger.Debug("OE finished", "duration", executionTime.String(), "height", oe.request.Height, "hash", hex.EncodeToString(oe.request.Hash))
oe.response, oe.err = resp, err
close(oe.stopCh)
oe.mtx.Unlock()
}()