Skip to content

Commit

Permalink
apply requests from ToniRamirezM
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Aug 13, 2024
1 parent a620cd6 commit 29c8b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions claimsponsor/claimsponsor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion reorgdetector/reorgdetector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 29c8b74

Please sign in to comment.