Diff

plugins/mod_storage_sql.lua @ 13213:50324f66ca2a

plugins: Use integer config API with interval specification where sensible Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 01:38:54 +0200
parent 13190:9dc6de46dae3
child 13221:2a9ce229efac
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Mon Jul 17 00:37:44 2023 +0200
+++ b/plugins/mod_storage_sql.lua	Mon Jul 17 01:38:54 2023 +0200
@@ -152,7 +152,7 @@
 
 --- Archive store API
 
-local archive_item_limit = module:get_option_number("storage_archive_item_limit");
+local archive_item_limit = module:get_option_integer("storage_archive_item_limit", nil, 0);
 local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000));
 
 local item_count_cache_hit = module:measure("item_count_cache_hit", "rate");