Skip to content

Commit

Permalink
fix(core): bump file watcher DEFAULT_BUFFER_INTERVAL to 1250
Browse files Browse the repository at this point in the history
This seems like a reasonable buffer and appears to fix a handful of
issues where Garden throws while in watch mode because different git
commands fail, usually because the file system is changing while the git
command is being run.
  • Loading branch information
eysi09 authored and edvald committed Aug 10, 2021
1 parent 5b8fe40 commit d46e457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { InternalError } from "./exceptions"
import { EventEmitter } from "events"

// How long we wait between processing added files and directories
const DEFAULT_BUFFER_INTERVAL = 400
const DEFAULT_BUFFER_INTERVAL = 1250

export type ChangeHandler = (module: GardenModule | null, configChanged: boolean) => Promise<void>

Expand Down

0 comments on commit d46e457

Please sign in to comment.