Skip to content

Commit

Permalink
fix int to string by using fmt.Sprint(i)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Dec 19, 2023
1 parent c2f80da commit f543976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-client/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
for t := 0; t < 10; t++ {
var sortKeys [][]byte
for i := 0; i < 10; i++ {
sortKeys = append(sortKeys, []byte("sort"+string(i)))
sortKeys = append(sortKeys, []byte("sort"+fmt.Sprint(i)))
}
for i := 0; i < 10; i++ {
err = tb.Set(context.Background(), []byte("hash"), sortKeys[i], value)
Expand Down

0 comments on commit f543976

Please sign in to comment.