@@ -63,9 +63,9 @@ const (
6363)
6464
6565// printZeroRateLimitWarning prints a warning when a rate limit is set to 0
66- func printZeroRateLimitWarning (p * printer. Printer , limitType string ) {
67- p . Printlnf ( "WARNING: Setting %s to 0 will STOP ALL TRAFFIC on this task queue." , limitType )
68- p . Println ( " This will prevent any tasks from being dispatched until the limit is changed." )
66+ func printZeroRateLimitWarning (cctx * CommandContext , limitType string ) {
67+ fmt . Fprintf ( cctx . Options . Stderr , "WARNING: Setting %s to 0 will STOP ALL TRAFFIC on this task queue.\n " , limitType )
68+ fmt . Fprintln ( cctx . Options . Stderr , " This will prevent any tasks from being dispatched until the limit is changed." )
6969}
7070
7171// parseFairnessKeyWeights parses "key=weight" or "key=default" format strings
@@ -200,7 +200,7 @@ func (c *TemporalTaskQueueConfigSetCommand) run(cctx *CommandContext, args []str
200200
201201 // Warn about zero rate limit (stops all traffic)
202202 if queueRateLimitIsZero {
203- printZeroRateLimitWarning (cctx . Printer , "queue rate limit" )
203+ printZeroRateLimitWarning (cctx , "queue rate limit" )
204204 }
205205 }
206206
@@ -216,7 +216,7 @@ func (c *TemporalTaskQueueConfigSetCommand) run(cctx *CommandContext, args []str
216216
217217 // Warn about zero rate limit
218218 if fairnessRateLimitIsZero {
219- printZeroRateLimitWarning (cctx . Printer , "fairness key rate limit default" )
219+ printZeroRateLimitWarning (cctx , "fairness key rate limit default" )
220220 }
221221 }
222222
0 commit comments