Skip to content

Commit c4b4d8d

Browse files
committed
Change default request timeout to 30s
1 parent b647a37 commit c4b4d8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/provider/ethereum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
ProviderAlchemy = "alchemy"
2929

3030
// DefaultTimeout is the default value for request timeout
31-
DefaultTimeout = 3000 * time.Millisecond
31+
DefaultTimeout = 30 * time.Second
3232
)
3333

3434
type rpcTransaction struct {

internal/provider/etherscan/etherscan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
const (
2020
// DefaultTimeout is the default value for request timeout
2121
// FIXME: code duplication
22-
DefaultTimeout = 3000 * time.Millisecond
22+
DefaultTimeout = 30 * time.Second
2323
)
2424

2525
type EtherscanClient struct {

0 commit comments

Comments
 (0)