Skip to content

Commit

Permalink
revert renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
calvwang9 committed Sep 11, 2023
1 parent 7edbb2d commit 97012db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cosmos/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ type Client struct {

// NewClient creates a new cosmos client
func NewClient(chainID string,
clientURL string,
tendermintURL string,
requestTimeout time.Duration,
lggr logger.Logger,
) (*Client, error) {
if requestTimeout <= 0 {
requestTimeout = DefaultTimeout
}

httpClient, err := libclient.DefaultHTTPClient(clientURL)
httpClient, err := libclient.DefaultHTTPClient(tendermintURL)
if err != nil {
return nil, err
}
httpClient.Timeout = requestTimeout
rpcClient, err := rpchttp.NewWithClient(clientURL, "/websocket", httpClient)
tmClient, err := rpchttp.NewWithClient(tendermintURL, "/websocket", httpClient)
if err != nil {
return nil, err
}
Expand All @@ -118,7 +118,7 @@ func NewClient(chainID string,
// If so then we would start putting timeouts on the ctx we pass in to the generate grpc client calls.
clientCtx := params.NewClientContext().
WithAccountRetriever(authtypes.AccountRetriever{}).
WithClient(rpcClient).
WithClient(tmClient).
WithChainID(chainID)

cosmosServiceClient := txtypes.NewServiceClient(clientCtx)
Expand Down

0 comments on commit 97012db

Please sign in to comment.