[#388] endpoint: fix incorrect use of trace.WithTaskGroup in ListAbstractionsStreamed

Capturing behavior was broken.
This commit is contained in:
Christian Schwarz
2021-01-24 13:57:20 +01:00
parent 96d5288667
commit 61acc7494a
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -52,9 +52,9 @@ func doZabsList(ctx context.Context, sc *cli.Subcommand, args []string) error {
var line chainlock.L
var wg sync.WaitGroup
defer wg.Wait()
wg.Add(1)
// print results
wg.Add(1)
go func() {
defer wg.Done()
enc := json.NewEncoder(os.Stdout)