Skip to content

Commit

Permalink
Update sync_v3.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernays committed May 8, 2024
1 parent f649bed commit 7f8c2bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/cmd/sync_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,17 @@ func syncConnectionV3(ctx context.Context, source v3source, destinations []v3des
}
}

sourceWarnings := totals.Warnings
sourceErrors := totals.Errors
syncSummaries := make([]syncSummary, len(destinationsClients))
for i := range destinationsClients {
m := destinationsClients[i].Metrics()
totals.Warnings += m.Warnings
totals.Errors += m.Errors
syncSummaries[i] = syncSummary{
Resources: uint64(totalResources),
SourceErrors: totals.Errors,
SourceWarnings: totals.Warnings,
SourceErrors: sourceErrors,
SourceWarnings: sourceWarnings,
SyncID: uid,
SourceName: sourceSpec.Name,
SourceVersion: sourceSpec.Version,
Expand Down

0 comments on commit 7f8c2bd

Please sign in to comment.