()
| 885 | } |
| 886 | |
| 887 | func (js *jetStream) legacyJetStream() (nats.JetStreamContext, error) { |
| 888 | opts := make([]nats.JSOpt, 0) |
| 889 | if js.opts.apiPrefix != "" { |
| 890 | opts = append(opts, nats.APIPrefix(js.opts.apiPrefix)) |
| 891 | } |
| 892 | if js.opts.ClientTrace != nil { |
| 893 | opts = append(opts, nats.ClientTrace{ |
| 894 | RequestSent: js.opts.ClientTrace.RequestSent, |
| 895 | ResponseReceived: js.opts.ClientTrace.ResponseReceived, |
| 896 | }) |
| 897 | } |
| 898 | return js.conn.JetStream(opts...) |
| 899 | } |
| 900 | |
| 901 | func bucketValid(bucket string) bool { |
| 902 | if len(bucket) == 0 { |
no test coverage detected