Fix lint errors

This commit is contained in:
世界 2026-06-22 15:49:11 +08:00
parent a9f4123ba2
commit 46aa536b37
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
41 changed files with 498 additions and 406 deletions

View file

@ -10,7 +10,7 @@ import (
func BenchmarkTsChecksum(b *testing.B) {
packet := make([][]byte, 1000)
for i := 0; i < 1000; i++ {
for i := range 1000 {
packet[i] = make([]byte, 1500)
rand.Read(packet[i])
}
@ -22,7 +22,7 @@ func BenchmarkTsChecksum(b *testing.B) {
func BenchmarkGChecksum(b *testing.B) {
packet := make([][]byte, 1000)
for i := 0; i < 1000; i++ {
for i := range 1000 {
packet[i] = make([]byte, 1500)
rand.Read(packet[i])
}