mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-12-06 19:26:23 +01:00
* NetDb : move storage from FS.cpp to NetDb.cpp
This commit is contained in:
@@ -22,7 +22,6 @@ namespace fs {
|
||||
#else
|
||||
std::string dirSep = "/";
|
||||
#endif
|
||||
HashedStorage NetDB("netDb", "r", "routerInfo-", "dat");
|
||||
HashedStorage Peers("peerProfiles", "p", "profile-", "txt");
|
||||
|
||||
const std::string & GetAppName () {
|
||||
@@ -72,8 +71,6 @@ namespace fs {
|
||||
if (boost::filesystem::exists(destinations))
|
||||
boost::filesystem::create_directory(destinations);
|
||||
|
||||
NetDB.SetPlace(dataDir);
|
||||
NetDB.Init(i2p::data::GetBase64SubstitutionTable(), 64);
|
||||
Peers.SetPlace(dataDir);
|
||||
Peers.Init(i2p::data::GetBase64SubstitutionTable(), 64);
|
||||
return true;
|
||||
@@ -157,7 +154,6 @@ namespace fs {
|
||||
}
|
||||
}
|
||||
|
||||
HashedStorage & GetNetDB() { return NetDB; }
|
||||
HashedStorage & GetPeerProfiles() { return Peers; }
|
||||
} // fs
|
||||
} // i2p
|
||||
|
||||
Reference in New Issue
Block a user