Fix bug with localKeypair being generated twice

This commit is contained in:
ameba23
2021-04-15 09:00:13 +02:00
parent ed1ed7d3e1
commit badc2c5d9b

View File

@@ -30,7 +30,6 @@ public class SecretOwnerTaskImpl extends ReturnShardTaskImpl
implements SecretOwnerTask {
// private final Executor ioExecutor;
private final KeyPair localKeyPair;
private boolean cancelled = false;
private InetSocketAddress socketAddress;
private ClientHelper clientHelper;
@@ -51,7 +50,6 @@ public class SecretOwnerTaskImpl extends ReturnShardTaskImpl
this.clientHelper = clientHelper;
// this.streamReaderFactory = streamReaderFactory;
// this.streamWriterFactory = streamWriterFactory;
localKeyPair = crypto.generateAgreementKeyPair();
}
@Override