remove transportLayer check from Operation class

This commit is contained in:
Roberto Cirillo 2021-05-13 16:15:55 +02:00
parent 52a6cf8641
commit 77ec6925c7
1 changed files with 2 additions and 2 deletions

View File

@ -382,10 +382,10 @@ public abstract class Operation {
} }
protected TransportManager getTransport(MyFile myFile) { protected TransportManager getTransport(MyFile myFile) {
if(Objects.isNull(transport)) { // if(Objects.isNull(transport)) {
TransportManagerFactory tmf= new TransportManagerFactory(server, user, password); TransportManagerFactory tmf= new TransportManagerFactory(server, user, password);
transport=tmf.getTransport(backendType, myFile.getGcubeMemoryType(), dbNames, myFile.getWriteConcern(), myFile.getReadPreference()); transport=tmf.getTransport(backendType, myFile.getGcubeMemoryType(), dbNames, myFile.getWriteConcern(), myFile.getReadPreference());
} // }
return transport; return transport;
} }