Skip to content

Commit 58a0c02

Browse files
committed
Change service settings/defaults for on-by-default.
1 parent c4f4b6f commit 58a0c02

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

data/bs.cfg

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,16 @@ handshake_seconds = 30
180180
secure_only = false
181181
# The number of query worker threads per endpoint, defaults to 1 (0 disables service).
182182
query_workers = 1
183-
# The maximum number of query subscriptions, defaults to 0 (subscription disabled).
184-
subscription_limit = 0
185-
# The query subscription expiration time, defaults to 10.
183+
# The maximum number of query subscriptions, defaults to 1000 (0 disables subscribe).
184+
subscription_limit = 1000
185+
# The query subscription expiration time, defaults to 10 (0 disables expiration).
186186
subscription_expiration_minutes = 10
187-
# The heartbeat service interval, defaults to 0 (service disabled).
188-
heartbeat_service_seconds = 0
189-
# Enable the block publishing service, defaults to false.
190-
block_service_enabled = false
191-
# Enable the transaction publishing service, defaults to false.
192-
transaction_service_enabled = false
187+
# The heartbeat service interval, defaults to 5 (0 disables service).
188+
heartbeat_service_seconds = 5
189+
# Enable the block publishing service, defaults to true.
190+
block_service_enabled = true
191+
# Enable the transaction publishing service, defaults to true.
192+
transaction_service_enabled = true
193193

194194
# The secure query endpoint, defaults to 'tcp://*:9081'.
195195
secure_query_endpoint = tcp://*:9081

src/parser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,17 +489,17 @@ options_metadata parser::load_settings()
489489
(
490490
"server.subscription_limit",
491491
value<uint32_t>(&configured.server.subscription_limit),
492-
"The maximum number of query subscriptions, defaults to 0 (subscription disabled)."
492+
"The maximum number of query subscriptions, defaults to 1000 (0 disables subscribe)."
493493
)
494494
(
495495
"server.subscription_expiration_minutes",
496496
value<uint32_t>(&configured.server.subscription_expiration_minutes),
497-
"The subscription expiration time, defaults to 10."
497+
"The query subscription expiration time, defaults to 10 (0 disables expiration)."
498498
)
499499
(
500500
"server.heartbeat_service_seconds",
501501
value<uint32_t>(&configured.server.heartbeat_service_seconds),
502-
"The heartbeat service interval, defaults to 0 (service disabled)."
502+
"The heartbeat service interval, defaults to 5 (0 disables service)."
503503
)
504504
(
505505
"server.block_service_enabled",

src/settings.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ namespace server {
2626
using namespace asio;
2727

2828
settings::settings()
29-
: query_workers(1),
30-
heartbeat_service_seconds(0),
31-
subscription_limit(0),
32-
subscription_expiration_minutes(10),
33-
priority(false),
29+
: priority(false),
3430
secure_only(false),
35-
block_service_enabled(false),
36-
transaction_service_enabled(false),
31+
query_workers(1),
32+
subscription_limit(1000),
33+
subscription_expiration_minutes(10),
34+
heartbeat_service_seconds(5),
35+
block_service_enabled(true),
36+
transaction_service_enabled(true),
3737

3838
secure_query_endpoint("tcp://*:9081"),
3939
secure_heartbeat_endpoint("tcp://*:9082"),

0 commit comments

Comments
 (0)