diff options
Diffstat (limited to 'nats')
-rw-r--r-- | nats/notify.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nats/notify.go b/nats/notify.go index 56cbc7f..d75928d 100644 --- a/nats/notify.go +++ b/nats/notify.go @@ -6,10 +6,11 @@ import ( ) type NatsNotifier struct { + ServerUrl string } func (notif *NatsNotifier) NotifyNewRegistration(reg *registration.Registration) error { - conn, err := nats.Connect("nats://nats-server:4222") + conn, err := nats.Connect(notif.ServerUrl) if err != nil { return err } |