Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook committed Jan 24, 2025
1 parent 5215f9d commit 4f2c358
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpc/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ func (b *BatchEndpoints) GetL2BlockTimestamp(blockHash string) (uint64, error) {

log.Infof("Getting l2 block timestamp from RPC. Block hash: %s", blockHash)

ctx, cancel := context.WithTimeout(context.Background(), b.readTimeout)
defer cancel()
response, err := rpc.JSONRPCCallWithContext(ctx, b.url, "eth_getBlockByHash", blockHash, false)
response, err := jSONRPCCall(b.url, "eth_getBlockByHash", blockHash, false)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit 4f2c358

Please sign in to comment.