Skip to content

Commit

Permalink
fix: Use unified errors lib to fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Sep 6, 2024
1 parent 7363e5d commit 55051eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions states/etcd/repair/channel_watched.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (
"sort"
"strings"

"github.com/pkg/errors"

"github.com/cockroachdb/errors"

Check failure on line 9 in states/etcd/repair/channel_watched.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/milvus-io) --custom-order (gci)
"github.com/milvus-io/birdwatcher/framework"
"github.com/milvus-io/birdwatcher/models"
"github.com/milvus-io/birdwatcher/states/etcd/common"
Expand All @@ -27,7 +26,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 55051eb

Please sign in to comment.