Skip to content

Commit

Permalink
fix: fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zijian Zhang committed Jan 29, 2024
1 parent e18d311 commit 59f9189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/legacy/api/DatabaseAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Local<Value> RowToLocalValue(const Row& row) {
// 生成函数
KVDBClass::KVDBClass(const Local<Object>& scriptObj, const string& dir) : ScriptClass(scriptObj) {
try {
kvdb = std::make_unique<ll::KeyValueDB>(dir);
kvdb = std::make_unique<ll::data::KeyValueDB>(dir);
} catch (...) {
kvdb.reset();
}
Expand All @@ -177,7 +177,7 @@ KVDBClass::KVDBClass(const Local<Object>& scriptObj, const string& dir) : Script

KVDBClass::KVDBClass(const string& dir) : ScriptClass(script::ScriptClass::ConstructFromCpp<KVDBClass>{}) {
try {
kvdb = std::make_unique<ll::KeyValueDB>(dir);
kvdb = std::make_unique<ll::data::KeyValueDB>(dir);
} catch (...) {
kvdb.reset();
}
Expand Down
4 changes: 2 additions & 2 deletions src/legacy/api/DatabaseAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
//// KVDB
class KVDBClass : public ScriptClass {
private:
std::unique_ptr<ll::KeyValueDB> kvdb;
int unloadCallbackIndex = -1;
std::unique_ptr<ll::data::KeyValueDB> kvdb;
int unloadCallbackIndex = -1;

public:
explicit KVDBClass(const Local<Object>& scriptObj, const string& dir);
Expand Down

0 comments on commit 59f9189

Please sign in to comment.