Skip to content

Commit

Permalink
do not register gateway instances for importer & exporter services
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Nov 16, 2024
1 parent ca5f4db commit 74dc059
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/app/edgedir.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ func (e *EdgeDir) GetGatewayRegistration(services ...string) builder.HandlerRegi
return err
}
}
if lo.Contains(services, importerService) {
err := dsi3.RegisterImporterHandlerFromEndpoint(ctx, mux, grpcEndpoint, opts)
if err != nil {
return err
}
}
if lo.Contains(services, exporterService) {
err := dse3.RegisterExporterHandlerFromEndpoint(ctx, mux, grpcEndpoint, opts)
if err != nil {
return err
}
}

if len(services) > 0 {
if err := mux.HandlePath(http.MethodGet, directoryOpenAPISpec, dsOpenAPIHandler); err != nil {
Expand Down

0 comments on commit 74dc059

Please sign in to comment.