From 847613570fcaa3324e080d3195f4914f012dc778 Mon Sep 17 00:00:00 2001 From: Joe Huang <joe.huang@smartcontract.com> Date: Fri, 20 Sep 2024 14:13:17 -0500 Subject: [PATCH] make func private --- core/chains/evm/client/rpc_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chains/evm/client/rpc_client.go b/core/chains/evm/client/rpc_client.go index cd1f01deb48..de32ae78605 100644 --- a/core/chains/evm/client/rpc_client.go +++ b/core/chains/evm/client/rpc_client.go @@ -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 } @@ -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) }