From 2f48e18fb1905afb1dda302ff8376ce54c75ee97 Mon Sep 17 00:00:00 2001 From: Dmytro Haidashenko Date: Mon, 13 Jan 2025 17:24:29 +0100 Subject: [PATCH] rename to MultiClient --- pkg/solana/chain.go | 4 ++-- .../client/{multinode_wrapped_client.go => multi_client.go} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename pkg/solana/client/{multinode_wrapped_client.go => multi_client.go} (97%) diff --git a/pkg/solana/chain.go b/pkg/solana/chain.go index b1021fdc8..c2da1ee93 100644 --- a/pkg/solana/chain.go +++ b/pkg/solana/chain.go @@ -239,7 +239,7 @@ func newChain(id string, cfg *config.TOMLConfig, ks core.Keystore, lggr logger.L var tc internal.Loader[client.ReaderWriter] = utils.NewLazyLoad(func() (client.ReaderWriter, error) { return ch.getClient() }) var bc internal.Loader[monitor.BalanceClient] = utils.NewLazyLoad(func() (monitor.BalanceClient, error) { return ch.getClient() }) - ch.multiClient = client.NewMultiNodeWrappedClient(ch.getClient) + ch.multiClient = client.NewMultiClient(ch.getClient) // txm will default to sending transactions using a single RPC client if sendTx is nil var sendTx func(ctx context.Context, tx *solanago.Transaction) (solanago.Signature, error) @@ -293,7 +293,7 @@ func newChain(id string, cfg *config.TOMLConfig, ks core.Keystore, lggr logger.L ch.multiNode = multiNode ch.txSender = txSender - ch.multiClient = client.NewMultiNodeWrappedClient(func() (client.ReaderWriter, error) { + ch.multiClient = client.NewMultiClient(func() (client.ReaderWriter, error) { return ch.multiNode.SelectRPC() }) diff --git a/pkg/solana/client/multinode_wrapped_client.go b/pkg/solana/client/multi_client.go similarity index 97% rename from pkg/solana/client/multinode_wrapped_client.go rename to pkg/solana/client/multi_client.go index d955bb8ab..eb159e114 100644 --- a/pkg/solana/client/multinode_wrapped_client.go +++ b/pkg/solana/client/multi_client.go @@ -17,7 +17,7 @@ type MultiClient struct { getClient func() (ReaderWriter, error) } -func NewMultiNodeWrappedClient(getClient func() (ReaderWriter, error)) *MultiClient { +func NewMultiClient(getClient func() (ReaderWriter, error)) *MultiClient { return &MultiClient{ getClient: getClient, }