nats-io / jsm.go

JetStream Management Library for Golang
Apache License 2.0
152 stars 27 forks source link

[fix] Prevent saving when multiple credentials exist #427

Closed codegangsta closed 1 year ago

codegangsta commented 1 year ago

Ran into this debugging/interacting with users, currently you can save multiple types of credentials in a context, which can lead to some pretty confusing behavior when trying to connect.

Still up in the air whether this should live here or in nats context validate, and open to opinions.