Skip to content

Commit 5bd4960

Browse files
committed
chore: remove duplicate package import
Signed-off-by: caltechustc <caltechustc@outlook.com>
1 parent 53c5669 commit 5bd4960

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

test/e2e/failover_e2e_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
coreda "github.com/evstack/ev-node/pkg/da/types"
3838
"github.com/evstack/ev-node/pkg/p2p/key"
3939
"github.com/evstack/ev-node/pkg/rpc/client"
40-
rpcclient "github.com/evstack/ev-node/pkg/rpc/client"
4140
"github.com/evstack/ev-node/types"
4241
pb "github.com/evstack/ev-node/types/pb/evnode/v1"
4342
)
@@ -856,7 +855,7 @@ type nodeDetails struct {
856855

857856
extClientOnce sync.Once
858857
xEthClient atomic.Pointer[ethclient.Client]
859-
xRPCClient atomic.Pointer[rpcclient.Client]
858+
xRPCClient atomic.Pointer[client.Client]
860859
running atomic.Bool
861860
p2pAddr string
862861
p2pPeerAddr string
@@ -870,7 +869,7 @@ func (d *nodeDetails) ethClient(t *testing.T) *ethclient.Client {
870869
return d.xEthClient.Load()
871870
}
872871

873-
func (d *nodeDetails) rpcClient(t *testing.T) *rpcclient.Client {
872+
func (d *nodeDetails) rpcClient(t *testing.T) *client.Client {
874873
t.Helper()
875874
d.initExtClients(t)
876875
return d.xRPCClient.Load()
@@ -880,11 +879,11 @@ func (d *nodeDetails) rpcClient(t *testing.T) *rpcclient.Client {
880879
func (d *nodeDetails) initExtClients(t *testing.T) {
881880
require.NotNil(t, d)
882881
d.extClientOnce.Do(func() {
883-
client, err := ethclient.Dial(d.ethAddr)
882+
ethClient, err := ethclient.Dial(d.ethAddr)
884883
require.NoError(t, err)
885-
d.xEthClient.Store(client)
886-
t.Cleanup(client.Close)
887-
rpcClient := rpcclient.NewClient(d.rpcAddr)
884+
d.xEthClient.Store(ethClient)
885+
t.Cleanup(ethClient.Close)
886+
rpcClient := client.NewClient(d.rpcAddr)
888887
require.NotNil(t, rpcClient)
889888
d.xRPCClient.Store(rpcClient)
890889
})

0 commit comments

Comments
 (0)