Skip to content

Commit

Permalink
set defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
quinqu committed May 6, 2021
1 parent 3d2ac0c commit c44d922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/events/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ func (cfg *UploadCompleterConfig) CheckAndSetDefaults() error {
return trace.BadParameter("missing parameter Uploader")
}
if cfg.GracePeriod == 0 {
cfg.GracePeriod = 1 * time.Minute //defaults.UploadGracePeriod
cfg.GracePeriod = 1 * defaults.UploadGracePeriod
}
if cfg.Component == "" {
cfg.Component = teleport.ComponentAuth
}
if cfg.CheckPeriod == 0 {
cfg.CheckPeriod = 1 * time.Minute //defaults.LowResPollingPeriod
cfg.CheckPeriod = defaults.LowResPollingPeriod
}
if cfg.Clock == nil {
cfg.Clock = clockwork.NewRealClock()
Expand Down

0 comments on commit c44d922

Please sign in to comment.