Skip to content

Commit

Permalink
fix: celestia wrong error log for availability checks and retrievals (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored Apr 14, 2024
1 parent 0073faf commit eb08e30
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions da/celestia/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ func (c *DataAvailabilityLayerClient) RetrieveBatches(daMetaData *da.DASubmitMet

return nil
}, retry.Attempts(uint(c.rpcRetryAttempts)), retry.DelayType(retry.FixedDelay), retry.Delay(c.rpcRetryDelay))
c.logger.Error("RetrieveBatches process failed", "error", err)

if err != nil {
c.logger.Error("RetrieveBatches process failed", "error", err)
}
return resultRetrieveBatch

}
Expand Down Expand Up @@ -415,7 +416,9 @@ func (c *DataAvailabilityLayerClient) CheckBatchAvailability(daMetaData *da.DASu

return nil
}, retry.Attempts(uint(c.rpcRetryAttempts)), retry.DelayType(retry.FixedDelay), retry.Delay(c.rpcRetryDelay))
c.logger.Error("CheckAvailability process failed", "error", err)
if err != nil {
c.logger.Error("CheckAvailability process failed", "error", err)
}
return availabilityResult
}
}
Expand Down

0 comments on commit eb08e30

Please sign in to comment.