Skip to content

Commit 65262cc

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

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

test/e2e/failover_e2e_test.go

Lines changed: 3 additions & 4 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()
@@ -884,7 +883,7 @@ func (d *nodeDetails) initExtClients(t *testing.T) {
884883
require.NoError(t, err)
885884
d.xEthClient.Store(client)
886885
t.Cleanup(client.Close)
887-
rpcClient := rpcclient.NewClient(d.rpcAddr)
886+
rpcClient := client.NewClient(d.rpcAddr)
888887
require.NotNil(t, rpcClient)
889888
d.xRPCClient.Store(rpcClient)
890889
})

0 commit comments

Comments
 (0)