Skip to content

Commit

Permalink
fix: 'generate -watch' stops sleeping between iterations after 15min (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nemars authored Dec 4, 2023
1 parent ac11ed2 commit 499671c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/templ/generatecmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func runCmd(ctx context.Context, w io.Writer, args Arguments) (err error) {
bo := backoff.NewExponentialBackOff()
bo.InitialInterval = time.Millisecond * 500
bo.MaxInterval = time.Second * 3
bo.MaxElapsedTime = 0

var firstRunComplete bool
fileNameToLastModTime := make(map[string]time.Time)
for !firstRunComplete || args.Watch {
Expand Down

0 comments on commit 499671c

Please sign in to comment.