Skip to content

Commit

Permalink
add check for pool init (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 authored Jan 21, 2022
1 parent b33b7df commit 2926102
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ public static void main(String[] args) {
NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
nebulaPoolConfig.setMaxConnSize(100);
List<HostAddress> addresses = Arrays.asList(new HostAddress("127.0.0.1", 9669));
pool.init(addresses, nebulaPoolConfig);
Boolean initResult = pool.init(addresses, nebulaPoolConfig);
if (!initResult) {
log.error("pool init failed.");
return;
}

session = pool.getSession("root", "nebula", false);
{
String createSchema = "CREATE SPACE IF NOT EXISTS test(vid_type=fixed_string(20)); "
Expand Down

0 comments on commit 2926102

Please sign in to comment.