Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
refactor by CR
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshao90 committed Oct 18, 2022
1 parent 0b99d96 commit f5036f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ func (c *Cluster) GetShardByID(id uint32) (*Shard, error) {

shard, ok := c.shardsCache[id]
if !ok {
return nil, ErrNodeNotFound.WithCausef("cluster GetShardByID, shardID:%s", id)
return nil, ErrShardNotFound.WithCausef("cluster GetShardByID, shardID:%s", id)
}
return shard, nil
}
Expand Down

0 comments on commit f5036f1

Please sign in to comment.