mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 17:14:17 +02:00
use the new wg.Go() function
This commit is contained in:
@@ -19,7 +19,6 @@ package es
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"codeberg.org/scip/esctl/pkg/cfg"
|
||||
"github.com/elastic/go-elasticsearch/v9"
|
||||
@@ -64,10 +63,8 @@ type apiResponse struct {
|
||||
func getApiData(
|
||||
conf *cfg.Config,
|
||||
es *elasticsearch.TypedClient,
|
||||
wg *sync.WaitGroup,
|
||||
reschan chan apiResponse,
|
||||
which string) {
|
||||
defer wg.Done()
|
||||
|
||||
apiRes := apiResponse{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user