Skip to content

Commit

Permalink
Merge pull request openconfig#384 from openconfig/fix382
Browse files Browse the repository at this point in the history
wait for all ONCE subscriptions before returning
  • Loading branch information
karimra authored Mar 2, 2024
2 parents 43061dc + 579ae70 commit 46bdda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/gnmi_client_subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ OUTER:
switch rsp.Response.(type) {
case *gnmi.SubscribeResponse_SyncResponse:
a.Logger.Printf("target %q, subscription %q received sync response", t.Config.Name, sreq.name)
return nil
continue
default:
m := outputs.Meta{"source": t.Config.Name, "format": a.Config.Format, "subscription-name": sreq.name}
a.Export(ctx, rsp, m, t.Config.Outputs...)
Expand Down

0 comments on commit 46bdda9

Please sign in to comment.