fix(blobstore): remove the minimum value limit

In some specific scenarios, a smaller alloc_retry_interval_ms value
needs to be set, so the minimum value limit is removed.

Signed-off-by: yuzhiqiang <yuzhiqiang_yewu@cmss.chinamobile.com>
This commit is contained in:
yuzhiqiang 2025-08-21 15:51:11 +08:00 committed by 梁曟風
parent 0a9673f266
commit 66d45dba3b

View File

@ -237,9 +237,7 @@ func confCheck(cfg *StreamConfig) error {
defaulter.LessOrEqual(&cfg.ServicePunishIntervalS, defaultServicePunishIntervalS)
defaulter.IntegerLessOrEqual(&cfg.ShardnodePunishIntervalS, 60)
defaulter.LessOrEqual(&cfg.AllocRetryTimes, defaultAllocRetryTimes)
if cfg.AllocRetryIntervalMS <= 100 {
cfg.AllocRetryIntervalMS = defaultAllocRetryIntervalMS
}
defaulter.LessOrEqual(&cfg.AllocRetryIntervalMS, defaultAllocRetryIntervalMS)
defaulter.LessOrEqual(&cfg.ShardnodeRetryTimes, defaultShardnodeRetryTimes)
if cfg.ShardnodeRetryIntervalMS <= defaultShardnodeRetryIntervalMS {
cfg.ShardnodeRetryIntervalMS = defaultShardnodeRetryIntervalMS