File tree 3 files changed +8
-7
lines changed
java/hlf/java/rest/client/config
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class FabricProperties {
22
22
"org.hyperledger.fabric.sdk.service_discovery.as_localhost" ;
23
23
24
24
private boolean localhostReportAddress ;
25
+ private boolean discoveryEnabled = true ;
25
26
private WalletConfig wallet ;
26
27
private OrgConnectionConfig orgConnectionConfig ;
27
28
private Client client ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public Gateway gateway(Wallet wallet) throws IOException {
48
48
builder
49
49
.identity (wallet , fabricProperties .getWallet ().getClientUser ().getName ())
50
50
.networkConfig (networkConfigPath )
51
- .discovery (true );
51
+ .discovery (fabricProperties . isDiscoveryEnabled () );
52
52
return builder .connect ();
53
53
}
54
54
Original file line number Diff line number Diff line change 1
1
spring:
2
2
profiles.active: local
3
-
3
+
4
4
---
5
5
springdoc:
6
6
version: 1.0.0
@@ -15,6 +15,7 @@ metrics:
15
15
kafka:
16
16
enable: false
17
17
fabric:
18
+ discoveryEnabled: true
18
19
localhostReportAddress: true
19
20
wallet:
20
21
path: wallet
@@ -74,7 +75,7 @@ spring:
74
75
profiles: container
75
76
devtools.add-properties: false
76
77
localhostReportAddress: false
77
-
78
+
78
79
---
79
80
spring:
80
81
profiles: qa
@@ -86,11 +87,10 @@ spring:
86
87
profiles: stg
87
88
devtools.add-properties: false
88
89
localhostReportAddress: false
89
-
90
-
90
+
91
+
91
92
---
92
93
spring:
93
- profiles: prod
94
+ profiles: prod
94
95
devtools.add-properties: false
95
96
localhostReportAddress: false
96
-
You can’t perform that action at this time.
0 commit comments