Merge pull request #9460 from simlecode/fix/incorrect-calculation

fix: not multiplied by the number of seconds
This commit is contained in:
Łukasz Magiera 2022-10-11 09:42:27 +02:00 committed by GitHub
commit 1720f51d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ type MessagePoolEvtMessage struct {
func init() { func init() {
// if the republish interval is too short compared to the pubsub timecache, adjust it // if the republish interval is too short compared to the pubsub timecache, adjust it
minInterval := pubsub.TimeCacheDuration + time.Duration(build.PropagationDelaySecs) minInterval := pubsub.TimeCacheDuration + time.Duration(build.PropagationDelaySecs)*time.Second
if RepublishInterval < minInterval { if RepublishInterval < minInterval {
RepublishInterval = minInterval RepublishInterval = minInterval
} }