From 29343494226024d3db38ee8b3734488cc89c260f Mon Sep 17 00:00:00 2001 From: Oleg Zaytsev Date: Wed, 12 Jan 2022 10:00:35 +0100 Subject: [PATCH] Update deprecation comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oleg Zaytsev Co-authored-by: Peter Štibraný --- concurrency/runner.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/concurrency/runner.go b/concurrency/runner.go index bd1db9846..70914a9ce 100644 --- a/concurrency/runner.go +++ b/concurrency/runner.go @@ -63,8 +63,8 @@ func ForEachUser(ctx context.Context, userIDs []string, concurrency int, userFun // ForEach runs the provided jobFunc for each job up to concurrency concurrent workers. // The execution breaks on first error encountered. -// Deprecated. -// Use ForEachJob instead. +// +// Deprecated: use ForEachJob instead. func ForEach(ctx context.Context, jobs []interface{}, concurrency int, jobFunc func(ctx context.Context, job interface{}) error) error { return ForEachJob(ctx, len(jobs), concurrency, func(ctx context.Context, idx int) error { return jobFunc(ctx, jobs[idx]) @@ -72,8 +72,8 @@ func ForEach(ctx context.Context, jobs []interface{}, concurrency int, jobFunc f } // CreateJobsFromStrings is an utility to create jobs from an slice of strings. -// Deprecated. -// Will be removed. Not needed when using ForEachJob. +// +// Deprecated: will be removed as it's not needed when using ForEachJob. func CreateJobsFromStrings(values []string) []interface{} { jobs := make([]interface{}, len(values)) for i := 0; i < len(values); i++ {