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:
John Colvin committed 2025-12-05 15:56:23 +00:00
1 parent 832c9b51ce
commit 3e12a6570c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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()
+1
View File
@@ -41,6 +41,7 @@
]
},
"PubSub": {
"IsEnabled": false,
"HeartbeatInterval": 15000,
"MissingHeartbeatsBeforeGc": 50,
"DisposedConnectionCheckPeriod": 1000,