Skip to content

Commit

Permalink
Fix typos in pg-client
Browse files Browse the repository at this point in the history
  • Loading branch information
TeslaCN authored and vietj committed Jan 17, 2022
1 parent b2ee7bc commit a7a03fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void writeScramClientInitialMessage(ScramClientInitialMessage msg) {
int totalLengthPosition = out.writerIndex();
out.writeInt(0); // message length -> will be set later

Util.writeCStringUTF8(out, msg.mecanism);
Util.writeCStringUTF8(out, msg.mechanism);
int msgPosition = out.writerIndex();
out.writeInt(0);
out.writeCharSequence(msg.message, UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
*/
public class ScramClientInitialMessage {

final String mecanism;
final String mechanism;
final String message;

public ScramClientInitialMessage(String message, String mecanism) {
public ScramClientInitialMessage(String message, String mechanism) {
this.message = message;
this.mecanism = mecanism;
this.mechanism = mechanism;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ScramClientInitialMessage createInitialSaslMessage(ByteBuf in) {
}

if (mechanisms.isEmpty()) {
throw new UnsupportedOperationException("SASL Authentication : the server returned no mecanism");
throw new UnsupportedOperationException("SASL Authentication : the server returned no mechanism");
}

// SCRAM-SHA-256-PLUS added in postgresql 11 is not supported
Expand Down

0 comments on commit a7a03fa

Please sign in to comment.