mirror of
https://git.robbyzambito.me/bluesky-nats-proxy/
synced 2025-12-20 08:14:50 +00:00
Add connection name
This commit is contained in:
2
main.go
2
main.go
@@ -65,6 +65,8 @@ func main() {
|
|||||||
opts = append(opts, nats.UserCredentials(natsCredsFile))
|
opts = append(opts, nats.UserCredentials(natsCredsFile))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts = append(opts, nats.Name("Bluesky Proxy"))
|
||||||
|
|
||||||
nc, err := nats.Connect(natsURL, opts...)
|
nc, err := nats.Connect(natsURL, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error connecting to NATS:", err)
|
log.Fatal("Error connecting to NATS:", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user