fix: stream name in AddOrUpdateStream()
This commit is contained in:
parent
1e18f34ee2
commit
d66cc04f04
@ -30,7 +30,7 @@ func FinalizeJetStream(subscriptions *[]*nats.Subscription) error {
|
||||
}
|
||||
|
||||
func AddOrUpdateStream(cfg *nats.StreamConfig, opts ...nats.JSOpt) (*nats.StreamInfo, error) {
|
||||
_, err := JsClient.StreamInfo("metric-stream")
|
||||
_, err := JsClient.StreamInfo(cfg.Name)
|
||||
if err != nil && err.Error() != "nats: stream not found" {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user