mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 07:11:38 +00:00
protocols/identify: Change default cache_size of Config to 100 (#2995)
`Config` struct's member `cache_size` now defaults to `100`.
This commit is contained in:
@ -202,7 +202,7 @@ required-features = ["full"]
|
|||||||
name = "distributed-key-value-store"
|
name = "distributed-key-value-store"
|
||||||
required-features = ["full"]
|
required-features = ["full"]
|
||||||
|
|
||||||
# Passing arguments to the docsrs builder in order to properly document cfg's.
|
# Passing arguments to the docsrs builder in order to properly document cfg's.
|
||||||
# More information: https://docs.rs/about/builds#cross-compiling
|
# More information: https://docs.rs/about/builds#cross-compiling
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
# 0.41.0 [unreleased]
|
# 0.41.0 [unreleased]
|
||||||
|
|
||||||
|
- Change default `cache_size` of `Config` to 100. See [PR 2995].
|
||||||
|
|
||||||
- Update to `prost-codec` `v0.3.0`.
|
- Update to `prost-codec` `v0.3.0`.
|
||||||
|
|
||||||
- Update to `libp2p-core` `v0.38.0`.
|
- Update to `libp2p-core` `v0.38.0`.
|
||||||
|
|
||||||
- Update to `libp2p-swarm` `v0.41.0`.
|
- Update to `libp2p-swarm` `v0.41.0`.
|
||||||
|
|
||||||
|
[PR 2995]: https://github.com/libp2p/rust-libp2p/pull/2995
|
||||||
|
|
||||||
# 0.40.0
|
# 0.40.0
|
||||||
|
|
||||||
- Update dependencies.
|
- Update dependencies.
|
||||||
|
@ -131,7 +131,7 @@ impl Config {
|
|||||||
initial_delay: Duration::from_millis(500),
|
initial_delay: Duration::from_millis(500),
|
||||||
interval: Duration::from_secs(5 * 60),
|
interval: Duration::from_secs(5 * 60),
|
||||||
push_listen_addr_updates: false,
|
push_listen_addr_updates: false,
|
||||||
cache_size: 0,
|
cache_size: 100,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -748,9 +748,7 @@ mod tests {
|
|||||||
let mut swarm2 = {
|
let mut swarm2 = {
|
||||||
let (pubkey, transport) = transport();
|
let (pubkey, transport) = transport();
|
||||||
let protocol = Behaviour::new(
|
let protocol = Behaviour::new(
|
||||||
Config::new("a".to_string(), pubkey.clone())
|
Config::new("a".to_string(), pubkey.clone()).with_agent_version("b".to_string()),
|
||||||
.with_cache_size(100)
|
|
||||||
.with_agent_version("b".to_string()),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Swarm::new(transport, protocol, pubkey.to_peer_id())
|
Swarm::new(transport, protocol, pubkey.to_peer_id())
|
||||||
|
Reference in New Issue
Block a user