mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[ADDED] Tiered limits and fix limit issues on updates (#2945)
* Adding tiered limits and fix limit issues on updates Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
@@ -949,11 +949,13 @@ func testMQTTEnableJSForAccount(t *testing.T, s *Server, accName string) {
|
||||
if err != nil {
|
||||
t.Fatalf("Error looking up account: %v", err)
|
||||
}
|
||||
limits := &JetStreamAccountLimits{
|
||||
MaxConsumers: -1,
|
||||
MaxStreams: -1,
|
||||
MaxMemory: 1024 * 1024,
|
||||
MaxStore: 1024 * 1024,
|
||||
limits := map[string]JetStreamAccountLimits{
|
||||
_EMPTY_: {
|
||||
MaxConsumers: -1,
|
||||
MaxStreams: -1,
|
||||
MaxMemory: 1024 * 1024,
|
||||
MaxStore: 1024 * 1024,
|
||||
},
|
||||
}
|
||||
if err := acc.EnableJetStream(limits); err != nil {
|
||||
t.Fatalf("Error enabling JS: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user