Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Jul 2, 2024
1 parent 177774c commit d8d7430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
// Client represents a crpc client. It builds on top of jsonclient, so error
// variables/structs and the authenticated round tripper live there.
type Client struct {
*jsonclient.Client
client *jsonclient.Client
}

// NewClient returns a client configured with a transport scheme, remote host
Expand All @@ -40,7 +40,7 @@ func NewClient(ctx context.Context, baseURL string, c *http.Client) *Client {

// Do executes an RPC request against the configured server.
func (c *Client) Do(ctx context.Context, method, version string, src, dst any) error {
err := c.Client.Do(ctx, "POST", path.Join(version, method), nil, src, dst)
err := c.client.Do(ctx, "POST", path.Join(version, method), nil, src, dst)

if err == nil {
return nil
Expand Down

0 comments on commit d8d7430

Please sign in to comment.