mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00: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