mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:20:43 +00:00
refactor: hide synology chat internals
This commit is contained in:
@@ -68,7 +68,7 @@ function createUnknownArgsLogAdapter(
|
||||
};
|
||||
}
|
||||
|
||||
export function collectSynologyGatewayStartupIssues(params: {
|
||||
function collectSynologyGatewayStartupIssues(params: {
|
||||
cfg: OpenClawConfig;
|
||||
account: ResolvedSynologyChatAccount;
|
||||
accountId: string;
|
||||
|
||||
@@ -128,10 +128,6 @@ export function clearSynologyWebhookRateLimiterStateForTest(): void {
|
||||
webhookInFlightLimiter.clear();
|
||||
}
|
||||
|
||||
export function getSynologyWebhookRateLimiterCountForTest(): number {
|
||||
return rateLimiters.size + invalidTokenRateLimiters.size;
|
||||
}
|
||||
|
||||
function getSynologyWebhookInvalidTokenRateLimitKey(req: IncomingMessage): string {
|
||||
return req.socket?.remoteAddress ?? "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user