Skip to content

Commit

Permalink
carbonserver/trie: skip a new DeepSource warning GO-S1023
Browse files Browse the repository at this point in the history
  • Loading branch information
bom-d-van committed May 18, 2022
1 parent 653a7f0 commit 99f8eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carbonserver/trie.go
Expand Up @@ -1933,7 +1933,7 @@ func (ti *trieIndex) generateQuotaAndUsageMetrics(prefix, name string, node *tri
// WHY: on linux, the maximum filename length is 255, keeping 5 here for
// file extension.
if len(name) >= 250 {
// skipcq: GSC-G401
// skipcq: GSC-G401, GO-S1023
name = fmt.Sprintf("%s-%x", name[:(250-md5.Size*2-1)], md5.Sum([]byte(name)))
}

Expand Down

0 comments on commit 99f8eb7

Please sign in to comment.