Skip to content

Commit

Permalink
fix stand alone
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Mar 16, 2022
1 parent 1b26df7 commit 6e6464a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage/StorageServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ void StorageServer::stop() {
}
if (storageServer_) {
#ifndef BUILD_STANDALONE
storageServer_->stop();
#else
storageServer_->cleanUp();
#else
storageServer_->stop();
#endif
}

Expand Down Expand Up @@ -341,7 +341,7 @@ std::unique_ptr<apache::thrift::ThriftServer> StorageServer::getStorageServer()
#else
std::shared_ptr<GraphStorageLocalServer> StorageServer::getStorageServer() {
auto handler = std::make_shared<GraphStorageServiceHandler>(env_.get());
server = GraphStorageLocalServer::getInstance();
auto server = GraphStorageLocalServer::getInstance();
server->setThreadManager(workers_);
server->setInterface(std::move(handler));
server->serve();
Expand Down

0 comments on commit 6e6464a

Please sign in to comment.