diff options
Diffstat (limited to 'internal/service/config.go')
-rw-r--r-- | internal/service/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/service/config.go b/internal/service/config.go index 2a8da6e..d4faeb0 100644 --- a/internal/service/config.go +++ b/internal/service/config.go @@ -20,7 +20,12 @@ const ( // Global parameters type GlobalConfig struct { - MaxInterval *Duration `toml:"max-interval"` + // MaxInterval is the maximum time to wait before syncing with a + // mirror. The wait time is a randomly generated time between the Min + // and Max intervals. The mirror is immediately downloaded once if both + // the Min and Max intervals are set to zero. + MaxInterval *Duration `toml:"max-interval"` + // MinInterval is the minimum time to wait before syncing with a mirror. MinInterval *Duration `toml:"min-interval"` StagingMethod string `toml:"staging-method,omitempty"` StagingPath string `toml:"staging-path,omitempty"` |