Skip to content

Commit 349f0d6

Browse files
committed
allow no auth nats connection
1 parent 22c2184 commit 349f0d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

messaging/nats.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func ConnectToNats(config *NatsConfig, opts ...nats.Option) (*nats.Conn, error)
7070
return nil, fmt.Errorf("TLS auth method is configured but no certificate was loaded")
7171
}
7272
opts = append(opts, nats.Secure(tlsConfig))
73+
case "":
74+
// noop ~ we aren't using any auth method
7375
default:
7476
return nil, fmt.Errorf("Invalid auth method: '%s'", config.Auth.Method)
7577
}

0 commit comments

Comments
 (0)