From d8d743092a8e42c83fe9592aa25f6dc03f0a36ba Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:27:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/2b2534efa3c4ab6f8a444b7fc23a1f4ceecf3424 --- lib/crpc/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crpc/client.go b/lib/crpc/client.go index 0e8eef1..53a98c8 100644 --- a/lib/crpc/client.go +++ b/lib/crpc/client.go @@ -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 @@ -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