mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Make persistent storage synchronization interval configurable
This commit is contained in:
parent
fdcea5537c
commit
3fd69311cb
4 changed files with 61 additions and 21 deletions
|
@ -194,6 +194,8 @@ namespace data
|
|||
bool SaveToFile (const std::string& fullPath);
|
||||
|
||||
std::shared_ptr<RouterProfile> GetProfile () const;
|
||||
bool HasProfile () const { return static_cast<bool>(m_Profile); };
|
||||
void SetProfile (const std::shared_ptr<RouterProfile>& profile) { m_Profile = profile; };
|
||||
void SaveProfile () { if (m_Profile) m_Profile->Save (GetIdentHash ()); };
|
||||
|
||||
void Update (const uint8_t * buf, int len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue