]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Disable part files for an old benchmark
authorMatt Joiner <anacrolix@gmail.com>
Fri, 30 May 2025 04:08:06 +0000 (14:08 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 30 May 2025 04:08:06 +0000 (14:08 +1000)
storage/mark-complete_test.go

index 482e9e0b22e31ee0a3a5aa09f1b3b8420c0300db..843a609a3e96dcafc42e71e75f50bff4be46908a 100644 (file)
@@ -3,6 +3,7 @@ package storage_test
 import (
        "testing"
 
+       g "github.com/anacrolix/generics"
        "github.com/anacrolix/torrent/storage"
        test_storage "github.com/anacrolix/torrent/storage/test"
 )
@@ -16,7 +17,7 @@ func BenchmarkMarkComplete(b *testing.B) {
                ci := storage.NewFileOpts(storage.NewFileClientOpts{
                        ClientBaseDir: b.TempDir(),
                        // TODO: Is the benchmark finding a bug?
-                       //UsePartFiles: g.Some(false),
+                       UsePartFiles: g.Some(false),
                })
                //ci := storage.NewFile(b.TempDir())
                b.Cleanup(func() { ci.Close() })