Skip to content

Commit

Permalink
default value for user and password
Browse files Browse the repository at this point in the history
  • Loading branch information
caton-hpg committed Apr 26, 2024
1 parent 348bc7c commit 4d901ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/StorageClientExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
int main(int argc, char* argv[]) {
nebula::init(&argc, &argv);

nebula::StorageClient c({"127.0.0.1:9559"}, "root", "nebula");
nebula::StorageClient c({"127.0.0.1:9559"});

nebula::ScanEdgeIter scanEdgeIter = c.scanEdgeWithPart("nba",
1,
Expand Down
4 changes: 2 additions & 2 deletions include/nebula/sclient/StorageClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class StorageClient {

public:
explicit StorageClient(const std::vector<std::string>& metaAddrs,
const std::string& user,
const std::string& password,
const std::string& user = "",
const std::string& password = "",
const MConfig& mConfig = MConfig{},
const SConfig& sConfig = SConfig{});

Expand Down

0 comments on commit 4d901ab

Please sign in to comment.