Skip to content

Commit

Permalink
fix: Upgrade golangci-lint workflow go version to v1.21 (#309)
Browse files Browse the repository at this point in the history
Use cockroachdb error lib, trying to fix lint issue

---------

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Sep 6, 2024
1 parent 7363e5d commit dc550d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
4 changes: 2 additions & 2 deletions states/etcd/repair/channel_watched.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

"github.com/pkg/errors"
"github.com/cockroachdb/errors"

"github.com/milvus-io/birdwatcher/framework"
"github.com/milvus-io/birdwatcher/models"
Expand All @@ -27,7 +27,7 @@ func (c *ComponentRepair) RepairChannelWatchedCommand(ctx context.Context, p *Ch
(p.ChannelName == "" || channel.Vchan.ChannelName == p.ChannelName)
})
if err != nil {
return errors.Wrap(err, "failed to list channel watch info")
return errors.Errorf("failed to list channel watch info, %w", err)
}

var targets []*models.ChannelWatch
Expand Down

0 comments on commit dc550d4

Please sign in to comment.