Skip to content

Commit

Permalink
fix make test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Jan 24, 2024
1 parent 42718ca commit 0aed54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup/backup_shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func fnvShardReplicaFromString(str string, activeReplicas []string) (string, err

h := fnv.New32a()
if _, err := h.Write([]byte(str)); err != nil {
return "", fmt.Errorf("can't write %s to fnv.New32a")
return "", fmt.Errorf("can't write %s to fnv.New32a", str)
}
i := h.Sum32() % uint32(len(activeReplicas))
return activeReplicas[i], nil
Expand Down

0 comments on commit 0aed54a

Please sign in to comment.