From 29c8b749e65c85daeb1d3089d415b25d89a2d376 Mon Sep 17 00:00:00 2001 From: Arnau Date: Tue, 13 Aug 2024 17:47:08 +0200 Subject: [PATCH] apply requests from ToniRamirezM --- claimsponsor/claimsponsor.go | 4 ++-- reorgdetector/reorgdetector.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/claimsponsor/claimsponsor.go b/claimsponsor/claimsponsor.go index f4eda62e..e0d8e7b8 100644 --- a/claimsponsor/claimsponsor.go +++ b/claimsponsor/claimsponsor.go @@ -167,11 +167,11 @@ func (c *ClaimSponsor) Start(ctx context.Context) { continue } - log.Infof("waiting for tx %s with global index %s to success or fail", claim.TxID, globalIndex.String()) + log.Infof("waiting for tx %s with global index %s to succeed or fail", claim.TxID, globalIndex.String()) status, err2 := c.waitTxToBeSuccessOrFail(ctx, claim.TxID) if err2 != nil { err = err2 - log.Errorf("error calling waitTxToBeMinedOrFail for tx %s: %v", claim.TxID, err) + log.Errorf("error calling waitTxToBeSuccessOrFail for tx %s: %v", claim.TxID, err) continue } log.Infof("tx %s with global index %s concluded with status: %s", claim.TxID, globalIndex.String(), status) diff --git a/reorgdetector/reorgdetector.go b/reorgdetector/reorgdetector.go index a6bd0247..9eb631aa 100644 --- a/reorgdetector/reorgdetector.go +++ b/reorgdetector/reorgdetector.go @@ -219,7 +219,7 @@ func (r *ReorgDetector) Subscribe(id string) (*Subscription, error) { func (r *ReorgDetector) AddBlockToTrack(ctx context.Context, id string, blockNum uint64, blockHash common.Hash) error { return nil - // COMENTING THE CODE AS I"M SUSPECTING A DETAHLOCK + // COMENTING THE CODE AS I'M SUSPECTING A DEATHLOCK // r.subscriptionsLock.RLock() // if sub, ok := r.subscriptions[id]; !ok { // r.subscriptionsLock.RUnlock()