Skip to content

Commit 60bfa4f

Browse files
authored
Merge pull request #91 from netlify/allow-no-auth-nats-conn
allow no auth nats connection
2 parents 300241b + 349f0d6 commit 60bfa4f

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)