refactor: hide synology chat internals

This commit is contained in:
Peter Steinberger
2026-05-02 09:12:58 +01:00
parent c35ed548bf
commit 7199e730a7
2 changed files with 1 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ function createUnknownArgsLogAdapter(
};
}
export function collectSynologyGatewayStartupIssues(params: {
function collectSynologyGatewayStartupIssues(params: {
cfg: OpenClawConfig;
account: ResolvedSynologyChatAccount;
accountId: string;

View File

@@ -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";
}