MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / retention_window

Method retention_window

nodedb/src/config/server/retention.rs:57–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 pub fn retention_window(&self) -> std::time::Duration {
58 std::time::Duration::from_secs(
59 u64::from(self.deactivated_collection_retention_days) * 24 * 60 * 60,
60 )
61 }
62}
63
64fn default_deactivated_collection_retention_days() -> u32 {

Callers 3

get_collectionMethod · 0.80
dropped_collectionsFunction · 0.80
load_settingsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected