@@ -29,7 +29,7 @@ const (
2929 defaultBasePath = ""
3030 defaultWorkerPoolSize = 16
3131 defaultPollingFrequency = 60
32- defaultForceRefreshInterval = 30
32+ defaultForceRefreshInterval = 30 * time . Second
3333 defaultBatchSize = 100
3434 defaultPollingScheduler = "round_robin"
3535 defaultSchedulerEntryFrequencyMinInterval = 5 * time .Minute
@@ -130,7 +130,7 @@ type options struct {
130130 cleanupArchiveUnreadDays int
131131 cleanupArchiveBatchSize int
132132 cleanupRemoveSessionsDays int
133- forceRefreshInterval int
133+ forceRefreshInterval time. Duration
134134 batchSize int
135135 schedulerEntryFrequencyMinInterval time.Duration
136136 schedulerEntryFrequencyMaxInterval time.Duration
@@ -392,7 +392,7 @@ func (o *options) WorkerPoolSize() int {
392392}
393393
394394// ForceRefreshInterval returns the force refresh interval
395- func (o * options ) ForceRefreshInterval () int {
395+ func (o * options ) ForceRefreshInterval () time. Duration {
396396 return o .forceRefreshInterval
397397}
398398
@@ -769,7 +769,7 @@ func (o *options) SortedOptions(redactSecret bool) []*option {
769769 "OAUTH2_REDIRECT_URL" : o .oauth2RedirectURL ,
770770 "OAUTH2_USER_CREATION" : o .oauth2UserCreationAllowed ,
771771 "DISABLE_LOCAL_AUTH" : o .disableLocalAuth ,
772- "FORCE_REFRESH_INTERVAL" : o .forceRefreshInterval ,
772+ "FORCE_REFRESH_INTERVAL" : int ( o .forceRefreshInterval . Seconds ()) ,
773773 "POLLING_FREQUENCY" : o .pollingFrequency ,
774774 "POLLING_LIMIT_PER_HOST" : o .pollingLimitPerHost ,
775775 "POLLING_PARSING_ERROR_LIMIT" : o .pollingParsingErrorLimit ,
0 commit comments