Skip to content

Commit

Permalink
[choreo] Remove JMS event listener initiator
Browse files Browse the repository at this point in the history
  • Loading branch information
VajiraPrabuddhaka committed Dec 16, 2024
1 parent b300035 commit 2af4f01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adapter/internal/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ func Run(conf *config.Config) {
}

var connectionURLList = conf.ControlPlane.BrokerConnectionParameters.EventListeningEndpoints
if strings.Contains(connectionURLList[0], amqpProtocol) {
if len(conf.ControlPlane.ASBDataplaneTopics) > 0 {
messaging.InitiateAndProcessEvents(conf)
} else if strings.Contains(connectionURLList[0], amqpProtocol) {
go messaging.ProcessEvents(conf)
} else {
messaging.InitiateAndProcessEvents(conf)
Expand Down

0 comments on commit 2af4f01

Please sign in to comment.