最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nats.io - NATS Import doesn't work from within specific stream - Stack Overflow

programmeradmin2浏览0评论

I have two accounts on the same server. Account-A and Account-B. I've used nsc for creating imports and exports.

Account-A exports the subject "public.xyz.>" publicly to Account-B. Account-B imports the same subject, "public.xyz.>".

When I run nats sub "public.xyz.>" on Account-B, it works perfectly. The export seems to work, and I receive the messages sent from Account-A.

However, when I run nats sub --stream xxx "public.xyz.>", it doesn't work. I don't receive any message from Account-A. Here, I'm including parameter --stream.

Stream xxx has 2 subjects: "public.xyz.foo" and "public.abc.bar".

Why, when I mention the stream in the "nats sub" command, I stop receiving messages?

Thanks in advance!

发布评论

评论列表(0)

  1. 暂无评论