mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
reduce default storage time to 10 minutes
This commit is contained in:
1 parent
388d43b89a
commit
b2ee07861d
1 file changed
+2
-2
@@ -86,7 +86,7 @@ struct ValueType {
|
||||
typedef uint16_t Id;
|
||||
ValueType () {}
|
||||
|
||||
ValueType (Id id, std::string name, duration e = std::chrono::hours(1))
|
||||
ValueType (Id id, std::string name, duration e = std::chrono::minutes(10))
|
||||
: id(id), name(name), expiration(e) {}
|
||||
|
||||
ValueType (Id id, std::string name, duration e, StorePolicy&& sp, EditPolicy&& ep)
|
||||
@@ -108,7 +108,7 @@ struct ValueType {
|
||||
|
||||
Id id {0};
|
||||
std::string name {};
|
||||
duration expiration {60 * 60};
|
||||
duration expiration {60 * 10};
|
||||
StorePolicy storePolicy {DEFAULT_STORE_POLICY};
|
||||
EditPolicy editPolicy {DEFAULT_EDIT_POLICY};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user