forked from TrueCloudLab/frostfs-node
[#148] linter: Add gocognit linter
Code with high cognitive complexity is hard intuitively to understand Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
97c36ed3ec
commit
481a1ca6f3
11 changed files with 18 additions and 13 deletions
|
@ -58,7 +58,7 @@ var errMustHaveTwoShards = errors.New("must have at least 1 spare shard")
|
|||
// Evacuate moves data from one shard to the others.
|
||||
// The shard being moved must be in read-only mode.
|
||||
//
|
||||
// nolint: funlen
|
||||
// nolint: funlen, gocognit
|
||||
func (e *StorageEngine) Evacuate(prm EvacuateShardPrm) (EvacuateShardRes, error) {
|
||||
sidList := make([]string, len(prm.shardID))
|
||||
for i := range prm.shardID {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue