]> Sergey Matveev's repositories - btrtrc.git/blobdiff - bencode/bench_test.go
Drop bradfitz/iter dependency (#605)
[btrtrc.git] / bencode / bench_test.go
index f5fb0a7a79f1a976d4ee007d154de4f5178e65e9..d6faafb76a124989f40abd52b26ecf1b453118d4 100644 (file)
@@ -6,8 +6,6 @@ import (
        "testing"
 
        "github.com/anacrolix/dht/v2/krpc"
-       "github.com/bradfitz/iter"
-
        "github.com/anacrolix/torrent/bencode"
 )
 
@@ -40,7 +38,7 @@ func BenchmarkMarshalThenUnmarshalKrpcMsg(tb *testing.B) {
        }
        tb.ReportAllocs()
        tb.ResetTimer()
-       for range iter.N(tb.N) {
+       for i := 0; i < tb.N; i += 1 {
                marshalAndUnmarshal(tb, orig)
        }
 }