Skip to content

Commit d1efa2d

Browse files
committed
bench_test: use minor API modifications to ReplayLog
1 parent 814a002 commit d1efa2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bench_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ func BenchmarkProcessPacket(b *testing.B) {
6060
b.Fatalf("unable to create test route: %v", err)
6161
}
6262
b.ReportAllocs()
63-
path[0].d.Start("0")
64-
defer shutdown("0", path[0].d)
63+
path[0].log.Start()
64+
defer shutdown("0", path[0].log)
6565
b.StartTimer()
6666

6767
var (
@@ -74,8 +74,8 @@ func BenchmarkProcessPacket(b *testing.B) {
7474
}
7575

7676
b.StopTimer()
77-
shutdown("0", path[0].d)
78-
path[0].d.Start("0")
77+
shutdown("0", path[0].log)
78+
path[0].log.Start()
7979
b.StartTimer()
8080
}
8181

0 commit comments

Comments
 (0)