Skip to content

Commit 37c0f77

Browse files
chore(migrate): otelgrpc stats handler migratie
migrate server/application - add ClientStream GenerateManfiestWithFiles retry.Disable() Signed-off-by: Jack-R-lantern <[email protected]>
1 parent dddc28d commit 37c0f77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/application/application.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/argoproj/gitops-engine/pkg/utils/text"
2020
"github.com/argoproj/pkg/sync"
2121
jsonpatch "github.com/evanphx/json-patch"
22+
grpc_retry "github.com/grpc-ecosystem/go-grpc-middleware/retry"
2223
log "github.com/sirupsen/logrus"
2324
"google.golang.org/grpc/codes"
2425
"google.golang.org/grpc/status"
@@ -648,7 +649,7 @@ func (s *Server) GetManifestsWithFiles(stream application.ApplicationService_Get
648649
ProjectSourceRepos: proj.Spec.SourceRepos,
649650
}
650651

651-
repoStreamClient, err := client.GenerateManifestWithFiles(stream.Context())
652+
repoStreamClient, err := client.GenerateManifestWithFiles(stream.Context(), grpc_retry.Disable())
652653
if err != nil {
653654
return fmt.Errorf("error opening stream: %w", err)
654655
}

0 commit comments

Comments
 (0)