mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* NetDb : move storage from FS.cpp to NetDb.cpp
This commit is contained in:
parent
d3746e0119
commit
b69fbdda9a
4 changed files with 8 additions and 12 deletions
4
FS.cpp
4
FS.cpp
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue