mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(gateway): remove voice reconciliation v3 (#2601)
This commit is contained in:
1 parent
ef067f36c6
commit
ce08f82a92
17 files changed
+79
-792
No files matched your search
@@ -16,8 +16,6 @@ export const GatewayRolloutConfigSchema = z.object({
|
||||
gateway_dispatch_relay_shards: z.number().int().min(1).max(10000).default(32),
|
||||
gateway_dispatch_relay_max_queue: z.number().int().min(0).max(1000000).default(50000),
|
||||
voice_e2ee_scope: VoiceE2EEScopeEnum.default('guild_feature_only'),
|
||||
voice_reconciliation_v3_percentage: z.number().min(0).max(100).default(100),
|
||||
voice_reconciliation_v3_interval_ms: z.number().int().min(500).max(60000).default(2000),
|
||||
});
|
||||
|
||||
export type GatewayRolloutConfig = z.infer<typeof GatewayRolloutConfigSchema>;
|
||||
@@ -32,8 +30,6 @@ export const GatewayRolloutConfigUpdateRequest = z.object({
|
||||
gateway_dispatch_relay_shards: z.number().int().min(1).max(10000).optional(),
|
||||
gateway_dispatch_relay_max_queue: z.number().int().min(0).max(1000000).optional(),
|
||||
voice_e2ee_scope: VoiceE2EEScopeEnum.optional(),
|
||||
voice_reconciliation_v3_percentage: z.number().min(0).max(100).optional(),
|
||||
voice_reconciliation_v3_interval_ms: z.number().int().min(500).max(60000).optional(),
|
||||
});
|
||||
|
||||
export type GatewayRolloutConfigUpdateRequest = z.infer<typeof GatewayRolloutConfigUpdateRequest>;
|
||||
|
||||
@@ -12,19 +12,17 @@ describe('gateway rollout schemas', () => {
|
||||
gateway_dispatch_relay_shards: 32,
|
||||
gateway_dispatch_relay_max_queue: 50000,
|
||||
voice_e2ee_scope: 'guild_feature_only',
|
||||
voice_reconciliation_v3_percentage: 100,
|
||||
voice_reconciliation_v3_interval_ms: 2000,
|
||||
});
|
||||
});
|
||||
test('update request remains partial and does not inject defaults', () => {
|
||||
expect(
|
||||
GatewayRolloutConfigUpdateRequest.parse({
|
||||
rpc_request_timeout_ms: 5000,
|
||||
voice_reconciliation_v3_interval_ms: 1500,
|
||||
gateway_dispatch_relay_shards: 16,
|
||||
}),
|
||||
).toEqual({
|
||||
rpc_request_timeout_ms: 5000,
|
||||
voice_reconciliation_v3_interval_ms: 1500,
|
||||
gateway_dispatch_relay_shards: 16,
|
||||
});
|
||||
});
|
||||
test('voice e2ee scope accepts only known modes', () => {
|
||||
|
||||
Reference in new issue
Block a user