config: Disable PubSub by default in Spark appsettings.json
Rename the key "Enabled" -> "IsEnabled" to be consistent with other appsettings
This commit is contained in:
1 parent
832c9b51ce
commit
3e12a6570c
2 files changed
+2
-1
No files matched your search
@@ -30,7 +30,7 @@ public static class SparkServices {
|
||||
.AddPrimitiveStreams(configurationSection.GetSection("PrimitiveStream"))
|
||||
.AddMarketDataStreams();
|
||||
var pubSubCfg = configurationSection.GetSection("PubSub");
|
||||
if (pubSubCfg is not null && pubSubCfg.GetValue("Enabled", true)) {
|
||||
if (pubSubCfg is not null && pubSubCfg.GetValue("IsEnabled", true)) {
|
||||
services.AddPubSubClient(pubSubCfg)
|
||||
.AddPubTableBroker()
|
||||
.AddRemoteQueryManager()
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
]
|
||||
},
|
||||
"PubSub": {
|
||||
"IsEnabled": false,
|
||||
"HeartbeatInterval": 15000,
|
||||
"MissingHeartbeatsBeforeGc": 50,
|
||||
"DisposedConnectionCheckPeriod": 1000,
|
||||
|
||||
Reference in new issue
Block a user