Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d24c89dc41 | ||
|
|
d159a8e392 |
14
go.mod
14
go.mod
@@ -1,11 +1,13 @@
|
|||||||
module github.com/jar3b/nacl
|
module github.com/jar3b/nacl
|
||||||
|
|
||||||
go 1.13
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/golang/protobuf v1.3.3 // indirect
|
github.com/golang/protobuf v1.4.2 // indirect
|
||||||
github.com/jar3b/grawt v0.1.5
|
github.com/jar3b/grawt v0.1.6
|
||||||
github.com/nats-io/nats-streaming-server v0.17.0 // indirect
|
github.com/nats-io/nats-server/v2 v2.1.8 // indirect
|
||||||
github.com/nats-io/nats.go v1.9.1
|
github.com/nats-io/nats-streaming-server v0.18.0 // indirect
|
||||||
github.com/nats-io/stan.go v0.6.0
|
github.com/nats-io/nats.go v1.10.0
|
||||||
|
github.com/nats-io/stan.go v0.7.0
|
||||||
|
google.golang.org/protobuf v1.25.0 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
2
nacl.go
2
nacl.go
@@ -80,7 +80,7 @@ func FinalizeStan(subscriptions *[]Subscription) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func FinalizeNats(subscriptions *[]*NatsSubscription) error {
|
func FinalizeNats(subscriptions *[]*NatsSubscription) error {
|
||||||
if StanClient == nil {
|
if NatsClient == nil {
|
||||||
return fmt.Errorf("stan client is not initialized")
|
return fmt.Errorf("stan client is not initialized")
|
||||||
}
|
}
|
||||||
for _, subscription := range *subscriptions {
|
for _, subscription := range *subscriptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user