Skip to content

Commit

Permalink
make func private
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Sep 20, 2024
1 parent d8e5911 commit 8476135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/chains/evm/client/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (r *rpcClient) SubscribeToHeads(ctx context.Context) (ch <-chan *evmtypes.H
if r.newHeadsPollInterval > 0 {
interval := r.newHeadsPollInterval
timeout := interval
poller, channel := commonclient.NewPoller[*evmtypes.Head](interval, r.LatestBlock, timeout, r.rpcLog)
poller, channel := commonclient.NewPoller[*evmtypes.Head](interval, r.latestBlock, timeout, r.rpcLog)
if err = poller.Start(ctx); err != nil {
return nil, nil, err
}
Expand Down Expand Up @@ -711,7 +711,7 @@ func (r *rpcClient) LatestFinalizedBlock(ctx context.Context) (head *evmtypes.He
return
}

func (r *rpcClient) LatestBlock(ctx context.Context) (head *evmtypes.Head, err error) {
func (r *rpcClient) latestBlock(ctx context.Context) (head *evmtypes.Head, err error) {
return r.BlockByNumber(ctx, nil)
}

Expand Down

0 comments on commit 8476135

Please sign in to comment.