Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Update defaultIdleTimeout to 90m
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaitrehenry committed Dec 6, 2018
1 parent d9577d2 commit d078250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Expand Up @@ -26,6 +26,7 @@ var (
"**/*file",
"*.lock",
}
defaultIdleTimeout = 90*time.Minute
)

type options struct {
Expand All @@ -48,7 +49,7 @@ func setupFlags(args []string) *options {
flags.StringSliceVarP(&opts.exclude, "exclude", "x", nil, "Exclude file patterns")
flags.StringSliceVarP(&opts.dirs, "directory", "d", []string{"."}, "Directories to watch")
flags.IntVarP(&opts.depth, "depth", "L", 5, "Descend only level directories deep")
flags.DurationVar(&opts.idleTimeout, "idle-timeout", 10*time.Minute,
flags.DurationVar(&opts.idleTimeout, "idle-timeout", defaultIdleTimeout,
"Exit after idle timeout")
flags.VarP(&opts.events, "event", "e",
"events to watch (create,write,remove,rename,chmod)")
Expand Down

0 comments on commit d078250

Please sign in to comment.