Skip to content

Commit

Permalink
Merge pull request #250 from memphisdev/memphis-nats-integrartion-http
Browse files Browse the repository at this point in the history
Integrate HTTP server
  • Loading branch information
idanasulin2706 committed Aug 9, 2022
2 parents f30d75b + 7060d25 commit 2ad75d9
Show file tree
Hide file tree
Showing 179 changed files with 899 additions and 790 deletions.
10 changes: 6 additions & 4 deletions background_tasks/poison_messages_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
package background_tasks

import (
"memphis-broker/broker"
"memphis-broker/handlers"
"memphis-broker/server"
)

var poisonMessagesHandler = handlers.PoisonMessagesHandler{}
var poisonMessagesHandler handlers.PoisonMessagesHandler

func ListenForPoisonMessages() {
broker.QueueSubscribe("$JS.EVENT.ADVISORY.CONSUMER.MAX_DELIVERIES.>", "$memphis_poison_messages_listeners_group", poisonMessagesHandler.HandleNewMessage)
func ListenForPoisonMessages(s *server.Server) {
s.QueueSubscribe("$JS.EVENT.ADVISORY.CONSUMER.MAX_DELIVERIES.>",
"$memphis_poison_messages_listeners_group",
poisonMessagesHandler.HandleNewMessage)
}

0 comments on commit 2ad75d9

Please sign in to comment.