Skip to content

Commit b938b01

Browse files
committed
progress
1 parent bd6edd9 commit b938b01

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/retry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ request retry_interval (12 sec) randomized_interval (0.5) randomized_int
159159
Reference: https://github.com/cenkalti/backoff/blob/v4/exponential.go#L9
160160
*/
161161

162+
// TODO: Make config optional by using default but passing nil.
162163
// Same as Retry only that the functionToRetry can return a value upon correct execution
163164
func RetryWithData[T any](functionToRetry func() (T, error), config *RetryParams) (T, error) {
164165
f := func() (T, error) {

core/utils/eth_client_utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func CalculateGasPriceBumpBasedOnRetry(currentGasPrice *big.Int, baseBumpPercent
8686
return bumpedGasPrice
8787
}
8888

89+
//TODO: move to retryable function file
8990
/*
9091
GetGasPriceRetryable
9192
Get the gas price from the client with retry logic.

0 commit comments

Comments
 (0)