We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String c = sc.next().trim(); if(c.equals("c")){ //TODO: request access here! System.out.println("starting two phase commit."); coordinator.startCommit(); }else if(c.equals("e")){ System.out.println("exiting.."); sc.close(); lt.finish(); return; }else if(c.equals("c")){ System.out.println("Active clients:"); for (Map.Entry<Socket, Participant> entry : connections.entrySet()) { System.out.println(entry.getValue()); } }else{ System.out.println("unrecognized command."); }
Here are two same if statements "c.equals("c")", which I think is a bug.
The text was updated successfully, but these errors were encountered:
Yeah, this looks wrong.
Sorry, something went wrong.
while(true){ String c = sc.next().trim(); if(c.equals("c")){ //TODO: request access here! System.out.println("starting two phase commit."); coordinator.startCommit(); }else if(c.equals("e")){ System.out.println("exiting.."); sc.close(); lt.finish(); return; }else if(c.equals("p")){ System.out.println("Active clients:"); for (Map.Entry<Socket, Participant> entry : connections.entrySet()) { System.out.println(entry.getValue()); } }else{ System.out.println("unrecognized command."); } }
you can always change one of the "c"s just like I did for checking the participants I made it to "p". This should work.
No branches or pull requests
Here are two same if statements "c.equals("c")", which I think is a bug.
The text was updated successfully, but these errors were encountered: