forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
@@ -18,6 +18,9 @@ import { UserRateLimitGuard } from './user-rate-limit.guard';
|
||||
{
|
||||
ttl: config.get<number>('throttle.ttl', 60) * 1000,
|
||||
limit: config.get<number>('throttle.limit', 100),
|
||||
// Keep the guard registered so route-level metadata remains intact,
|
||||
// but allow local batch tests to disable enforcement explicitly.
|
||||
skipIf: () => !config.get<boolean>('throttle.enabled', true),
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user