Skip to content

Commit

Permalink
toGraphSpaceName and toGraphSpaceID should be consistent (#2917)
Browse files Browse the repository at this point in the history
  • Loading branch information
panda-sheep authored Sep 24, 2021
1 parent d968b44 commit 0ae8210
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mock/AdHocSchemaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ StatusOr<GraphSpaceID> AdHocSchemaManager::toGraphSpaceID(folly::StringPiece spa
}
}

StatusOr<std::string> AdHocSchemaManager::toGraphSpaceName(GraphSpaceID) { return "default_space"; }
StatusOr<std::string> AdHocSchemaManager::toGraphSpaceName(GraphSpaceID space) {
return std::to_string(space);
}

StatusOr<TagID> AdHocSchemaManager::toTagID(GraphSpaceID space, folly::StringPiece tagName) {
UNUSED(space);
Expand Down

0 comments on commit 0ae8210

Please sign in to comment.