fix: not multiplied by the number of seconds

This commit is contained in:
simlecode 2022-10-10 16:18:35 +08:00
parent e57a27e12a
commit e69fdaf48b

View File

@ -112,7 +112,7 @@ type MessagePoolEvtMessage struct {
func init() {
// 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 {
RepublishInterval = minInterval
}