Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Jan 16, 2023
1 parent 69991d2 commit da92324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ orbs:
executors:
golang:
docker:
- image: circleci/golang:1.13
- image: cimg/go:1.18.8
resource_class: medium
jobs:
test:
Expand All @@ -31,7 +31,7 @@ jobs:
- go/mod-download
- go/install-golangci-lint:
gobin: $HOME/.local/bin
version: 1.23.8
version: 1.50.1
- run:
command: $HOME/.local/bin/golangci-lint run -v --concurrency 2
workflows:
Expand Down
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (s *handler) createError(err error) *respError {

out := &respError{
Code: code,
Message: err.(error).Error(),
Message: err.Error(),
}

if m, ok := err.(marshalable); ok {
Expand Down Expand Up @@ -430,7 +430,7 @@ func (s *handler) handle(ctx context.Context, req request, w func(func(io.Writer
stats.Record(ctx, metrics.RPCResponseError.M(1))
resp.Error = &respError{
Code: 1,
Message: err.(error).Error(),
Message: err.Error(),
}
} else {
resp.Result = res
Expand Down

0 comments on commit da92324

Please sign in to comment.