feat(stdiscosrv): configurable desired not-found rate

This commit is contained in:
Jakob Borg
2025-04-13 09:41:16 +02:00
parent b5ffd0a796
commit b4776ea4e0
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func BenchmarkAPIRequests(b *testing.B) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
go db.Serve(ctx)
api := newAPISrv("127.0.0.1:0", tls.Certificate{}, db, nil, true, true)
api := newAPISrv("127.0.0.1:0", tls.Certificate{}, db, nil, true, true, 1000)
srv := httptest.NewServer(http.HandlerFunc(api.handler))
kf := b.TempDir() + "/cert"