Add pull subscribe #1

Merged
namhq1989 merged 12 commits from add-pull-subscribe into master 2022-03-18 04:28:50 +00:00
1 changed files with 0 additions and 11 deletions
Showing only changes of commit 76996c8142 - Show all commits

View File

@ -21,9 +21,6 @@ type JetStream struct {
var (
natsServer Server
natsJetStream JetStream
// FIXME: delete this
jsPublic nats.JetStreamContext
)
// Connect ...
@ -65,9 +62,6 @@ func Connect(cfg Config) error {
}
natsJetStream.instance = js
// FIXME: delete this
jsPublic = js
return nil
}
@ -80,8 +74,3 @@ func GetServer() Server {
func GetJetStream() JetStream {
return natsJetStream
}
// GetJSPublic ...
func GetJSPublic() nats.JetStreamContext {
return jsPublic
}