batch33 task3 implement group B cluster stream features

This commit is contained in:
Joseph Doherty
2026-02-28 22:54:06 -05:00
parent d6efba6f8a
commit fee37d88bf
6 changed files with 489 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
namespace ZB.MOM.NatsNet.Server;
public sealed partial class NatsServer
{
internal int Replicas(StreamConfig? config)
{
if (config == null)
return 1;
return Math.Max(1, config.Replicas);
}
}