fixed mntx discovery
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user