Skip to content

Commit

Permalink
Don't use libp2p cache by default (#1820)
Browse files Browse the repository at this point in the history
* don't use cache by default

* clarifying comment
  • Loading branch information
rob-maron authored Sep 26, 2023
1 parent c331038 commit fdf4c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions crates/hotshot/src/traits/networking/libp2p_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ where
// setting to sane defaults
.ttl(None)
.republication_interval(None)
// this removes the cache for tests
.dht_cache_location(None)
.build()
.unwrap()
} else {
Expand All @@ -220,8 +218,6 @@ where
// setting to sane defaults
.ttl(None)
.republication_interval(None)
// this removes the cache for tests
.dht_cache_location(None)
.build()
.unwrap()
};
Expand Down
5 changes: 2 additions & 3 deletions crates/libp2p-networking/src/network/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ pub struct NetworkNodeConfig {
#[builder(setter(into, strip_option), default = "DEFAULT_REPLICATION_FACTOR")]
pub replication_factor: Option<NonZeroUsize>,

/// location of the dht cache
/// default is "dht.cache" in the current directory
#[builder(default = "Some(\"dht.cache\".to_string())")]
/// location of the dht cache, default is None
#[builder(default = "None")]
pub dht_cache_location: Option<String>,

#[builder(default)]
Expand Down

0 comments on commit fdf4c13

Please sign in to comment.