mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Remove unused code
Signed-off-by: mantuliu <240951888@qq.com>
This commit is contained in:
parent
5ad9e41879
commit
bc70548c47
@ -27,9 +27,6 @@ import (
|
|||||||
// this function.
|
// this function.
|
||||||
func StorageVersionHash(group, version, kind string) string {
|
func StorageVersionHash(group, version, kind string) string {
|
||||||
gvk := group + "/" + version + "/" + kind
|
gvk := group + "/" + version + "/" + kind
|
||||||
if gvk == "" {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
bytes := sha256.Sum256([]byte(gvk))
|
bytes := sha256.Sum256([]byte(gvk))
|
||||||
// Assuming there are N kinds in the cluster, and the hash is X-byte long,
|
// Assuming there are N kinds in the cluster, and the hash is X-byte long,
|
||||||
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).
|
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).
|
||||||
|
Loading…
Reference in New Issue
Block a user