Skip to content

Commit

Permalink
Make comment in limiter Create clearer
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Zinnatullin <ceo@abstractny.gay>
  • Loading branch information
DrJosh9000 and artem-zinnatullin committed Oct 1, 2024
1 parent ef55991 commit c8022f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/scheduler/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func (l *MaxInFlightLimiter) Create(ctx context.Context, job monitor.Job) error
return nil
}

// Block until there's a token in the bucket, or the job information becomes
// too stale.
// Block until there's a token in the bucket, or cancel if the job
// information becomes too stale.
select {
case <-ctx.Done():
return context.Cause(ctx)
Expand Down

0 comments on commit c8022f1

Please sign in to comment.