Removed code related to mqtrigger (#1680)

This commit is contained in:
Rahul Bhati
2020-08-06 20:59:08 +05:30
committed by GitHub
parent 587b166a4e
commit f751546913
9 changed files with 23 additions and 533 deletions
+8 -2
View File
@@ -45,7 +45,10 @@ func Register(mqType string, validator TopicValidator) {
topicValidators[mqType] = validator
}
func IsValidTopic(mqType string, topic string) bool {
func IsValidTopic(mqType, topic, mqtKind string) bool {
if mqtKind == "keda" {
return true
}
validator, registered := topicValidators[mqType]
if !registered {
return false
@@ -53,7 +56,10 @@ func IsValidTopic(mqType string, topic string) bool {
return validator(topic)
}
func IsValidMessageQueue(mqType string) bool {
func IsValidMessageQueue(mqType, mqtKind string) bool {
if mqtKind == "keda" {
return true
}
_, registered := topicValidators[mqType]
return registered
}