mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 14:24:59 +00:00
Address PR feedback
This commit is contained in:
committed by
clawdinator[bot]
parent
5af322f710
commit
f04e84f194
@@ -8,8 +8,12 @@ import type { GatewayPlugin } from "@buape/carbon/gateway";
|
||||
*/
|
||||
const gatewayRegistry = new Map<string, GatewayPlugin>();
|
||||
|
||||
// Sentinel key for the default (unnamed) account. Uses a prefix that cannot
|
||||
// collide with user-configured account IDs.
|
||||
const DEFAULT_ACCOUNT_KEY = "\0__default__";
|
||||
|
||||
function resolveAccountKey(accountId?: string): string {
|
||||
return accountId ?? "default";
|
||||
return accountId ?? DEFAULT_ACCOUNT_KEY;
|
||||
}
|
||||
|
||||
/** Register a GatewayPlugin instance for an account. */
|
||||
|
||||
Reference in New Issue
Block a user