Skip to content

Commit

Permalink
decrease fetch interval
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Nov 13, 2024
1 parent 75079e4 commit 7c23f0a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion jsonrpc/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (b *JSONRPCBackend) feeFetcher() {
return nil
}

ticker := time.NewTicker(5 * time.Second)
ticker := time.NewTicker(3 * time.Second)
defer ticker.Stop()

for {
Expand Down
1 change: 0 additions & 1 deletion jsonrpc/backend/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func (b *JSONRPCBackend) GetBalance(address common.Address, blockNrOrHash rpc.Bl
return nil, err
}

// jsonrpc is not ready for querying
feeDenom, feeDecimals, err := b.feeInfo()
if err != nil {
return nil, err
Expand Down
2 changes: 0 additions & 2 deletions jsonrpc/backend/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func (b *JSONRPCBackend) EstimateGas(args rpctypes.TransactionArgs, blockNrOrHas
return hexutil.Uint64(0), err
}

// jsonrpc is not ready for querying
_, feeDecimals, err := b.feeInfo()
if err != nil {
return hexutil.Uint64(0), err
Expand Down Expand Up @@ -102,7 +101,6 @@ func (b *JSONRPCBackend) GasPrice() (*hexutil.Big, error) {
return nil, err
}

// jsonrpc is not ready for querying
feeDenom, feeDecimals, err := b.feeInfo()
if err != nil {
return nil, err
Expand Down

0 comments on commit 7c23f0a

Please sign in to comment.