Skip to content

Commit

Permalink
Merge pull request #3630 from VajiraPrabuddhaka/asb-conn-fix
Browse files Browse the repository at this point in the history
[choreo] Fix unnecessary JMS listener initiating logic when ASBDataplaneTopics specified
  • Loading branch information
VajiraPrabuddhaka authored Dec 16, 2024
2 parents b300035 + 2af4f01 commit bf94ff8
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 bf94ff8

Please sign in to comment.