Skip to content

Commit 36330f4

Browse files
committed
fix ci
1 parent eb12710 commit 36330f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ orbs:
44
executors:
55
golang:
66
docker:
7-
- image: circleci/golang:1.13
7+
- image: cimg/go:1.18.8
88
resource_class: medium
99
jobs:
1010
test:
@@ -31,7 +31,7 @@ jobs:
3131
- go/mod-download
3232
- go/install-golangci-lint:
3333
gobin: $HOME/.local/bin
34-
version: 1.23.8
34+
version: 1.50.1
3535
- run:
3636
command: $HOME/.local/bin/golangci-lint run -v --concurrency 2
3737
workflows:

handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func (s *handler) createError(err error) *respError {
281281

282282
out := &respError{
283283
Code: code,
284-
Message: err.(error).Error(),
284+
Message: err.Error(),
285285
}
286286

287287
if m, ok := err.(marshalable); ok {
@@ -434,7 +434,7 @@ func (s *handler) handle(ctx context.Context, req request, w func(func(io.Writer
434434
stats.Record(ctx, metrics.RPCResponseError.M(1))
435435
resp.Error = &respError{
436436
Code: 1,
437-
Message: err.(error).Error(),
437+
Message: err.Error(),
438438
}
439439
} else {
440440
resp.Result = res

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type RPCServer struct {
2222
*handler
2323
reverseClientBuilder func(context.Context, *wsConn) (context.Context, error)
2424

25-
pingInterval time.Duration
25+
pingInterval time.Duration
2626
}
2727

2828
// NewServer creates new RPCServer instance

0 commit comments

Comments
 (0)