Refactor from base project

This commit is contained in:
2015-06-25 16:00:44 +01:00
parent 62796af99b
commit 6590ddac10
3 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ public class Loader extends AbstractLoader<Loader> {
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
String host = properties.getProperty("remote.host");
int port = Integer.valueOf(properties.getProperty("remote.port"));
addSender(protocol, implementation, host, port);
addClientSender(protocol, implementation, host, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse remote.port");
}
@@ -44,7 +44,7 @@ public class Loader extends AbstractLoader<Loader> {
String protocol = properties.getOrDefault("server.protocol", "tcp").toString();
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
int port = Integer.valueOf(properties.getProperty("server.port"));
addForwarder(protocol, implementation, port);
addServerForwarder(protocol, implementation, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse server.port");
}