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 Oct 9, 2024
1 parent cd5ffbe commit cf3cb2a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/jsonclient/jsonclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import (

"github.com/wearemojo/mojo-public-go/lib/cher"
"github.com/wearemojo/mojo-public-go/lib/gerrors"
"github.com/wearemojo/mojo-public-go/lib/merr"
"github.com/wearemojo/mojo-public-go/lib/mlog"
"github.com/wearemojo/mojo-public-go/lib/version"
)

Expand Down Expand Up @@ -71,15 +69,6 @@ func (c *Client) Do(ctx context.Context, method, path string, params url.Values,

// DoWithHeaders executes an HTTP request against the configured server with custom headers.
func (c *Client) DoWithHeaders(ctx context.Context, method, path string, headers http.Header, params url.Values, src, dst any, requestModifiers ...func(r *http.Request)) error {
// semi-temp logging for discourse request volumes. Consider improving or removing if found.
if c.Host == "community.mojo.so" || c.Host == "discourse.mojo-nonprod.dev" {
mlog.Info(ctx, merr.New(ctx, "discourse_api_log", merr.M{
"method": method,
"path": path,
"params": params,
}))
}

fullPath := pathlib.Join("/", c.Prefix, path)
req := &http.Request{
Method: method,
Expand Down

0 comments on commit cf3cb2a

Please sign in to comment.