Fixing the extra .0 in the default pubsub server routeplusfixing acorner cae issue of gettign a fast streaming data cakback after an unsubscribe

This commit is contained in:
Taha committed 2024-06-24 00:28:07 -04:00
1 parent 087d8ab8c9
commit 5cf7eacd82
3 files changed
+8 -4

No files matched your search

@@ -61,7 +61,7 @@ namespace BCG {
}
public static PubSubRoute get_default_route() {
return new PubSubRoute("bluto://127.0.0.0.1:12345", ".*");
return new PubSubRoute("bluto://127.0.0.1:12345", ".*");
}
}
@@ -176,10 +176,10 @@ public class PubSubConfig {
WaitPeriodAfterGc = 1000,
SimpleEchoServer = false,
PublisherRoutes = new() {
new("bluto://127.0.0.0.1:12345", ".*")
new("bluto://127.0.0.1:12345", ".*")
},
SubscriberRoutes = new() {
new("bluto://127.0.0.0.1:12345", ".*")
new("bluto://127.0.0.1:12345", ".*")
}
};
return rv;
@@ -47,7 +47,11 @@ namespace BCG {
foreach (var m in conn_data) {
var msg = new PubSubServerMessage();
msg.consruct_deserialize(m);
rv.Add(msg);
if (_tags.Contains(msg.tag))
rv.Add(msg);
else
bts.Log.Gen.warn("SingleServerSubscriberCore.get_updates msg: {msg} is not subscribed currently");
}
return rv;
}