Skip to content

Commit

Permalink
feat(java-client): java client add class host_port for fqdn compile
Browse files Browse the repository at this point in the history
  • Loading branch information
yujingwei committed Apr 16, 2024
1 parent 59ba96a commit 8f5fdf0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public _Fields fieldForId(int fieldId) {

public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
host = iprot.readString();
port = iprot.readI32();
port = iprot.readI16();
hostPortType = iprot.readByte();
validate();
}
Expand All @@ -230,7 +230,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException {
validate();
oprot.writeString(host);
oprot.writeI32(port);
oprot.writeI32((short) port & 0xFFFF);
oprot.writeByte(hostPortType);
}

Expand Down

0 comments on commit 8f5fdf0

Please sign in to comment.