Use fs::path since mac doesn't support std::filesystem

pull/1312/head
Stephen Shelton 4 years ago
parent 5a8f390b3b
commit c9faddc8e4
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -12,7 +12,7 @@ namespace llarp
}
void
PeerDb::loadDatabase(std::optional<std::filesystem::path> file)
PeerDb::loadDatabase(std::optional<fs::path> file)
{
std::lock_guard guard(m_statsLock);

@ -6,6 +6,7 @@
#include <sqlite_orm/sqlite_orm.h>
#include <util/fs.hpp>
#include <config/config.hpp>
#include <router_id.hpp>
#include <util/time.hpp>
@ -35,7 +36,7 @@ namespace llarp
/// is provided. If no value is provided, the database will be memory-backed.
/// @throws if sqlite_orm/sqlite3 is unable to open or create a database at the given file
void
loadDatabase(std::optional<std::filesystem::path> file);
loadDatabase(std::optional<fs::path> file);
/// Flushes the database. Must be called after loadDatabase(). This call will block during I/O
/// and should be called in an appropriate threading context. However, it will make a temporary

Loading…
Cancel
Save