Skip to content

Commit

Permalink
fix: fix slice init length (#6237)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang authored Sep 26, 2024
1 parent cccfd73 commit c461a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ring/tokens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func TestTokens_Serialization(t *testing.T) {
tokens := make(Tokens, 512)
tokens := make(Tokens, 0, 512)
for i := 0; i < 512; i++ {
tokens = append(tokens, uint32(rand.Int31()))
}
Expand Down

0 comments on commit c461a17

Please sign in to comment.