Skip to content

Commit

Permalink
rename to MultiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaidashenko committed Jan 13, 2025
1 parent a27d397 commit 2f48e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/solana/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 2f48e18

Please sign in to comment.