Skip to content

Commit

Permalink
Rename mode into transport for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Mar 20, 2024
1 parent 9200a87 commit ff6ab11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/polypheny/jdbc/ProtoInterfaceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public class ProtoInterfaceClient {

public ProtoInterfaceClient( String host, int port, Map<String, String> parameters ) throws ProtoInterfaceServiceException {
try {
String mode = parameters.getOrDefault( "mode", "plain" );
if ( mode.equals( "plain" ) ) {
String transport = parameters.getOrDefault( "transport", "plain" );
if ( transport.equals( "plain" ) ) {
con = new PlainTransport( host, port );
} else {
throw new ProtoInterfaceServiceException( "Unknown mode " + mode );
throw new ProtoInterfaceServiceException( "Unknown mode " + transport );
}
rpc = new RpcService( con );
} catch ( IOException e ) {
Expand Down

0 comments on commit ff6ab11

Please sign in to comment.