convox / convox

time.Tick used in leaky way SCC-SA1015
Performance
Critical
14 days agoa year old
using time.Tick leaks the underlying ticker, consider using it only in endless functions, tests and the main package, and use time.NewTicker here
499		Ignores: ignores,
500	})
501
502	tick := time.Tick(1000 * time.Millisecond)503	var chgs []changes.Change
504
505	for {
using time.Tick leaks the underlying ticker, consider using it only in endless functions, tests and the main package, and use time.NewTicker here
428}
429
430func (opts Options2) waitForBuild(ctx context.Context, id string) error {
431	tick := time.Tick(1 * time.Second)432
433	for {
434		select {