|
|
@@ -130,16 +130,17 @@ type options struct {
|
|
|
cleanupArchiveUnreadDays int
|
|
|
cleanupArchiveBatchSize int
|
|
|
cleanupRemoveSessionsDays int
|
|
|
- pollingFrequency int
|
|
|
forceRefreshInterval int
|
|
|
batchSize int
|
|
|
- pollingScheduler string
|
|
|
schedulerEntryFrequencyMinInterval int
|
|
|
schedulerEntryFrequencyMaxInterval int
|
|
|
schedulerEntryFrequencyFactor int
|
|
|
schedulerRoundRobinMinInterval int
|
|
|
schedulerRoundRobinMaxInterval int
|
|
|
+ pollingFrequency int
|
|
|
+ pollingLimitPerHost int
|
|
|
pollingParsingErrorLimit int
|
|
|
+ pollingScheduler string
|
|
|
workerPoolSize int
|
|
|
createAdmin bool
|
|
|
adminUsername string
|
|
|
@@ -390,11 +391,6 @@ func (o *options) WorkerPoolSize() int {
|
|
|
return o.workerPoolSize
|
|
|
}
|
|
|
|
|
|
-// PollingFrequency returns the interval to refresh feeds in the background.
|
|
|
-func (o *options) PollingFrequency() int {
|
|
|
- return o.pollingFrequency
|
|
|
-}
|
|
|
-
|
|
|
// ForceRefreshInterval returns the force refresh interval
|
|
|
func (o *options) ForceRefreshInterval() int {
|
|
|
return o.forceRefreshInterval
|
|
|
@@ -405,6 +401,22 @@ func (o *options) BatchSize() int {
|
|
|
return o.batchSize
|
|
|
}
|
|
|
|
|
|
+// PollingFrequency returns the interval to refresh feeds in the background.
|
|
|
+func (o *options) PollingFrequency() int {
|
|
|
+ return o.pollingFrequency
|
|
|
+}
|
|
|
+
|
|
|
+// PollingLimitPerHost returns the limit of concurrent requests per host.
|
|
|
+// Set to zero to disable.
|
|
|
+func (o *options) PollingLimitPerHost() int {
|
|
|
+ return o.pollingLimitPerHost
|
|
|
+}
|
|
|
+
|
|
|
+// PollingParsingErrorLimit returns the limit of errors when to stop polling.
|
|
|
+func (o *options) PollingParsingErrorLimit() int {
|
|
|
+ return o.pollingParsingErrorLimit
|
|
|
+}
|
|
|
+
|
|
|
// PollingScheduler returns the scheduler used for polling feeds.
|
|
|
func (o *options) PollingScheduler() string {
|
|
|
return o.pollingScheduler
|
|
|
@@ -433,11 +445,6 @@ func (o *options) SchedulerRoundRobinMaxInterval() int {
|
|
|
return o.schedulerRoundRobinMaxInterval
|
|
|
}
|
|
|
|
|
|
-// PollingParsingErrorLimit returns the limit of errors when to stop polling.
|
|
|
-func (o *options) PollingParsingErrorLimit() int {
|
|
|
- return o.pollingParsingErrorLimit
|
|
|
-}
|
|
|
-
|
|
|
// IsOAuth2UserCreationAllowed returns true if user creation is allowed for OAuth2 users.
|
|
|
func (o *options) IsOAuth2UserCreationAllowed() bool {
|
|
|
return o.oauth2UserCreationAllowed
|
|
|
@@ -762,8 +769,9 @@ func (o *options) SortedOptions(redactSecret bool) []*option {
|
|
|
"OAUTH2_REDIRECT_URL": o.oauth2RedirectURL,
|
|
|
"OAUTH2_USER_CREATION": o.oauth2UserCreationAllowed,
|
|
|
"DISABLE_LOCAL_AUTH": o.disableLocalAuth,
|
|
|
- "POLLING_FREQUENCY": o.pollingFrequency,
|
|
|
"FORCE_REFRESH_INTERVAL": o.forceRefreshInterval,
|
|
|
+ "POLLING_FREQUENCY": o.pollingFrequency,
|
|
|
+ "POLLING_LIMIT_PER_HOST": o.pollingLimitPerHost,
|
|
|
"POLLING_PARSING_ERROR_LIMIT": o.pollingParsingErrorLimit,
|
|
|
"POLLING_SCHEDULER": o.pollingScheduler,
|
|
|
"MEDIA_PROXY_HTTP_CLIENT_TIMEOUT": o.mediaProxyHTTPClientTimeout,
|