Skip to content

Commit

Permalink
chore: rename func to rpcHostURL
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Aug 16, 2024
1 parent ef58d6f commit 8e3eece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions walletcontroller/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewRpcWalletControllerFromArgs(
) (*RpcWalletController, error) {

connCfg := &rpcclient.ConnConfig{
Host: rpcHostName(host, walletName),
Host: rpcHostURL(host, walletName),
User: user,
Pass: pass,
DisableTLS: disableTls,
Expand Down Expand Up @@ -100,7 +100,7 @@ func NewRpcWalletControllerFromArgs(
}, nil
}

func rpcHostName(host, walletName string) string {
func rpcHostURL(host, walletName string) string {
if len(walletName) > 0 {
return host + "/wallet/" + walletName
}
Expand Down

0 comments on commit 8e3eece

Please sign in to comment.