mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-20 06:05:08 +01:00
Initial working poc for publishing to rabbitmq
This commit is contained in:
6
main.go
6
main.go
@@ -185,6 +185,12 @@ func main() {
|
||||
go svc.StartWebhookSubscribtion(webhookCtx, svc.Config.WebhookUrl)
|
||||
defer cancelWebhook()
|
||||
}
|
||||
//Start rabbit publisher
|
||||
if svc.Config.RabbitMQUri != "" {
|
||||
rabbitCtx, cancelRabbit := context.WithCancel(context.Background())
|
||||
go svc.StartRabbitMqPublisher(rabbitCtx)
|
||||
defer cancelRabbit()
|
||||
}
|
||||
|
||||
if svc.Config.EnableGRPC {
|
||||
//start grpc server
|
||||
|
||||
Reference in New Issue
Block a user