This repository was archived by the owner on Apr 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/main/java/org/hyperledger/fabric/sdk Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,10 @@ long getReconnectCount() {
405405 return reconnectCount ;
406406 }
407407
408- void setTLSCertificateKeyPair (TLSCertificateKeyPair tlsCertificateKeyPair ) {
408+ synchronized void setTLSCertificateKeyPair (TLSCertificateKeyPair tlsCertificateKeyPair ) {
409+ if (properties == null ) {
410+ properties = new Properties ();
411+ }
409412 properties .put ("clientKeyBytes" , tlsCertificateKeyPair .getKeyPemBytes ());
410413 properties .put ("clientCertBytes" , tlsCertificateKeyPair .getCertPEMBytes ());
411414
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ class PeerEventServiceClient {
6262 private final PeerOptions peerOptions ;
6363 private final boolean filterBlock ;
6464 private byte [] clientTLSCertificateDigest ;
65- Properties properties = new Properties ();
6665 StreamObserver <Envelope > nso = null ;
6766 StreamObserver <DeliverResponse > so = null ;
6867 private Channel .ChannelEventQue channelEventQue ;
@@ -91,7 +90,6 @@ class PeerEventServiceClient {
9190 peerEventRegistrationWaitTimeMilliSecs = PEER_EVENT_REGISTRATION_WAIT_TIME ;
9291
9392 } else {
94- this .properties = properties ;
9593
9694 String peerEventRegistrationWaitTime = properties .getProperty ("peerEventRegistrationWaitTime" , Long .toString (PEER_EVENT_REGISTRATION_WAIT_TIME ));
9795
@@ -360,8 +358,6 @@ void peerVent(TransactionContext transactionContext) throws TransactionException
360358 start .setNewest (Ab .SeekNewest .getDefaultInstance ());
361359 }
362360
363- // properties.
364-
365361 envelope = createSeekInfoEnvelope (transactionContext ,
366362 start .build (),
367363 Ab .SeekPosition .newBuilder ()
You can’t perform that action at this time.
0 commit comments