diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 277be0a..b979ae8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.4' - name: Build run: make ci diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2320ad1..97ccb8d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.4' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bec7e8..497299b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.4' - run: make inst diff --git a/go.mod b/go.mod index 187dbc1..214bef6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tomMoulard/sendbird-go -go 1.22.3 +go 1.22.4 require github.com/stretchr/testify v1.9.0 diff --git a/pkg/client/client.go b/pkg/client/client.go index a7b11bb..ffd57bc 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -36,7 +36,7 @@ func NewClient(opts ...Option) Client { return cfg } -// do sends a request to the sendbird API. +// do send a request to the sendbird API. func (c *client) do(ctx context.Context, method, path string, obj any, resp any) (any, error) { logger := c.logger.With("method", method, "path", path) logger.Debug("do") @@ -72,8 +72,6 @@ func (c *client) do(ctx context.Context, method, path string, obj any, resp any) logger = logger.With("status", r.StatusCode) if r.StatusCode < 200 || r.StatusCode >= 300 { - logger.Error("request failed") - return nil, c.handleError(r.StatusCode, r.Body) } diff --git a/tools/go.mod b/tools/go.mod index d6b7244..91e6086 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/tomMoulard/sendbird-go/build -go 1.22.3 +go 1.22.4 // FIXME: temporary fix for go.opentelemetry.io/otel/exporters/otlp/internal v0.20.1 replace go.opentelemetry.io/otel/exporters/otlp/internal v0.20.1 => go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.43.0