Skip to content

Commit

Permalink
connected message should be inside block if starts with equals 0 afte…
Browse files Browse the repository at this point in the history
…r auth
  • Loading branch information
Alex Gaetano Padula committed Dec 24, 2023
1 parent 0735d40 commit f2c972e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cursusdb.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,11 @@ void Connect() throws IOException {
String clusterResponse = reader.readLine();

if (clusterResponse.startsWith("0")) {

System.out.println("Connected to cluster.");
} else {
throw new InvalidAuthenticationException("Could not authenticate to cluster");
}


System.out.println("Connected to cluster.");

}

void Close() throws IOException {
Expand Down

0 comments on commit f2c972e

Please sign in to comment.