Skip to content

Commit 99bcad7

Browse files
feat(relay): lower default managed tunnel limit to 3
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent aa658ab commit 99bcad7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎infra/relay/src/environments/ManagedTunnelLimits.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ describe("ManagedTunnelLimits", () => {
4949
}).pipe(Effect.provide(layerWithDb(fakeDb)));
5050
});
5151

52-
it.effect("rejects provisioning at the default limit of 10", () => {
52+
it.effect("rejects provisioning at the default limit of 3", () => {
5353
const fakeDb = makeFakeDb({
54-
countRows: Effect.succeed([{ activeTunnels: 10 }]),
54+
countRows: Effect.succeed([{ activeTunnels: 3 }]),
5555
});
5656

5757
return Effect.gen(function* () {
@@ -64,8 +64,8 @@ describe("ManagedTunnelLimits", () => {
6464
_tag: "ManagedTunnelLimitExceeded",
6565
userId: "user-1",
6666
environmentId: "environment-1",
67-
maxTunnels: 10,
68-
activeTunnels: 10,
67+
maxTunnels: 3,
68+
activeTunnels: 3,
6969
});
7070
}).pipe(Effect.provide(layerWithDb(fakeDb)));
7171
});

‎infra/relay/src/environments/ManagedTunnelLimits.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
* Managed tunnels a user may hold at once unless a row in
1515
* `relay_managed_tunnel_limits` overrides it for that user.
1616
*/
17-
export const DEFAULT_MANAGED_TUNNEL_LIMIT = 10;
17+
export const DEFAULT_MANAGED_TUNNEL_LIMIT = 3;
1818

1919
export class ManagedTunnelLimitPersistenceError extends Schema.TaggedErrorClass<ManagedTunnelLimitPersistenceError>()(
2020
"ManagedTunnelLimitPersistenceError",

0 commit comments

Comments
 (0)