From 16f43836594f2400e52d21da61b6dd32feca9b7d Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Fri, 8 Dec 2023 17:10:14 +0000 Subject: Move NATS server URL into struct --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/main.go b/cmd/main.go index 6d5dfec..ab0cb4d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -22,7 +22,7 @@ func main() { workDir = "." } - notifier := &nats.NatsNotifier{} + notifier := &nats.NatsNotifier{ServerUrl: "nats://nats-server:4222"} databasePath := path.Join(workDir, "registrations.sqlite") repository := uvok_sqlite.NewRepository(databasePath, context) -- cgit v1.2.3