Skip to content

Commit 4cc8466

Browse files
author
Dov Alperin
committed
:stare:
1 parent 73838f4 commit 4cc8466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/start/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ func scaleToZeroWorker(ctx context.Context, node *flypg.Node, svisor *supervisor
105105

106106
fmt.Printf("Configured scale to zero with duration of %s\n", duration.String())
107107

108-
timeout := time.NewTicker(duration)
109-
defer timeout.Stop()
108+
ticker := time.NewTicker(duration)
109+
defer ticker.Stop()
110110
for {
111111
select {
112112
case <-ctx.Done():
113113
return
114-
case <-timeout.C:
114+
case <-ticker.C:
115115
current, err := getCurrentConnCount(ctx, node)
116116
if err != nil {
117117
fmt.Printf("Failed to get current connection count will try again in %s\n", duration.String())

0 commit comments

Comments
 (0)