done add pull sub

This commit is contained in:
Nam Huynh 2022-03-18 11:24:12 +07:00
parent 8c1ee783f3
commit 76996c8142
1 changed files with 0 additions and 11 deletions

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
}