fixed mntx discovery

This commit is contained in:
Stephan D
2026-03-03 13:15:42 +01:00
parent f9acb47ad7
commit 83745bcd10
24 changed files with 268 additions and 201 deletions

View File

@@ -17,6 +17,7 @@ import (
msg "github.com/tech/sendico/pkg/messaging"
msgproducer "github.com/tech/sendico/pkg/messaging/producer"
"github.com/tech/sendico/pkg/mlogger"
"github.com/tech/sendico/pkg/mservice"
"go.uber.org/zap"
)
@@ -85,7 +86,7 @@ func (a *App) Run(ctx context.Context) error {
} else {
producer := msgproducer.NewProducer(a.logger.Named("discovery_producer"), broker)
announce := discovery.Announcement{
Service: "FX_INGESTOR",
Service: mservice.FXIngestor,
Operations: []string{discovery.OperationFXIngest},
Version: appversion.Create().Short(),
}

View File

@@ -105,7 +105,7 @@ func (s *Service) startDiscoveryAnnouncer() {
return
}
announce := discovery.Announcement{
Service: "FX_ORACLE",
Service: mservice.FXOracle,
Operations: []string{discovery.OperationFXQuote},
InvokeURI: s.invokeURI,
Version: appversion.Create().Short(),