Skip to content

Commit

Permalink
fix: Use Count for progress.Run (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cszatmary authored Jul 28, 2022
1 parent 4468c71 commit 7b3c66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func RunT[T any](ctx context.Context, opts RunOptions, fn RunFuncT[T]) (T, error
ctx, cancel := context.WithTimeout(ctx, opts.Timeout)
defer cancel()

tracker.Start(opts.Message, 0)
tracker.Start(opts.Message, opts.Count)
resCh := make(chan result[T], 1)
go func() {
t, err := fn(ctx)
Expand Down

0 comments on commit 7b3c66f

Please sign in to comment.