Skip to content

Commit b36411a

Browse files
authored
Merge pull request #200 from fly-apps/scale_to_zero_check_change
Bump scale to zero check
2 parents abfcf97 + bdd39b4 commit b36411a

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
@@ -119,11 +119,11 @@ func scaleToZeroWorker(ctx context.Context, node *flypg.Node) error {
119119
case <-ticker.C:
120120
current, err := getCurrentConnCount(ctx, node)
121121
if err != nil {
122-
fmt.Printf("Failed to get current connection count will try again in %s\n", duration.String())
122+
log.Printf("Failed to get current connection count will try again in %s\n", duration.String())
123123
continue
124124
}
125-
fmt.Printf("Current connection count is %d\n", current)
126-
if current > 1 {
125+
log.Printf("Current connection count is %d\n", current)
126+
if current >= 1 {
127127
continue
128128
}
129129
return fmt.Errorf("scale to zero condition hit")

0 commit comments

Comments
 (0)