mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Update programs/server/Server.cpp
Co-authored-by: Tuan Pham Anh <[email protected]>
This commit is contained in:
co-authored by
Tuan Pham Anh
parent
034edef6ab
commit
eb34293fb4
@@ -1151,7 +1151,7 @@ try
|
||||
|
||||
size_t update_period_seconds = server_settings[ServerSetting::asynchronous_metrics_update_period_s];
|
||||
size_t heavy_metrics_update_period_seconds = server_settings[ServerSetting::asynchronous_heavy_metrics_update_period_s];
|
||||
if (update_period_seconds == 0 || (heavy_metrics_update_period_seconds == 0))
|
||||
if (update_period_seconds == 0 || heavy_metrics_update_period_seconds == 0)
|
||||
{
|
||||
throw Exception(ErrorCodes::INVALID_SETTING_VALUE, "Settings asynchronous_metrics_update_period_s and asynchronous_heavy_metrics_update_period_s must not be zero");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user