add return nats client
This commit is contained in:
parent
38aaf70405
commit
7c944a9897
|
@ -55,6 +55,11 @@ func Connect(cfg Config) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetClient ...
|
||||||
|
func GetClient() *nats.Conn {
|
||||||
|
return natsClient
|
||||||
|
}
|
||||||
|
|
||||||
// GetJetStream ...
|
// GetJetStream ...
|
||||||
func GetJetStream() nats.JetStreamContext {
|
func GetJetStream() nats.JetStreamContext {
|
||||||
return natsJS
|
return natsJS
|
||||||
|
|
Loading…
Reference in New Issue