Skip to content

Commit

Permalink
test(proto): Use default BloomTokenLog
Browse files Browse the repository at this point in the history
Tests no longer reconfigure config to use SimpleTokenLog if the
fastbloom feature is enabled, instead preferring to use the default
BloomTokenLog.
  • Loading branch information
gretchenfrage committed Jan 26, 2025
1 parent 3e0687d commit 0b4e414
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions quinn-proto/src/tests/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,12 @@ impl Write for TestWriter {

pub(super) fn server_config() -> ServerConfig {
let mut config = ServerConfig::with_crypto(Arc::new(server_crypto()));
config
.validation_token
.sent(2)
.log(Arc::new(SimpleTokenLog::default()));
if cfg!(feature = "fastbloom") {
config
.validation_token
.sent(2)
.log(Arc::new(SimpleTokenLog::default()));
}
config
}

Expand Down

0 comments on commit 0b4e414

Please sign in to comment.