Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocols/identify: Change default cache_size of Config to 100 #2995

Merged
merged 11 commits into from
Nov 4, 2022
2 changes: 2 additions & 0 deletions protocols/identify/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

- Update to `libp2p-swarm` `v0.40.0`.

- Change default `cache_size` of `Config` to 100
efarg marked this conversation as resolved.
Show resolved Hide resolved

thomaseizinger marked this conversation as resolved.
Show resolved Hide resolved
# 0.39.0

- Update to `libp2p-swarm` `v0.39.0`.
Expand Down
3 changes: 1 addition & 2 deletions protocols/identify/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Config {
initial_delay: Duration::from_millis(500),
interval: Duration::from_secs(5 * 60),
push_listen_addr_updates: false,
cache_size: 0,
cache_size: 100,
}
}

Expand Down Expand Up @@ -749,7 +749,6 @@ mod tests {
let (pubkey, transport) = transport();
let protocol = Behaviour::new(
Config::new("a".to_string(), pubkey.clone())
.with_cache_size(100)
.with_agent_version("b".to_string()),
);

Expand Down