chore: clean-up

This commit is contained in:
Wesley F. Young committed 2024-08-11 23:08:41 +08:00
1 parent a1badcd9a1
commit 3c42cc17c8
3 files changed
+51 -58

No files matched your search

+3 -5
View File
@@ -12,7 +12,7 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
heartbeatInterval: number;
secret: string | undefined;
coreContext: NapCatCore;
onebotContext: NapCatOneBot11Adapter;
obContext: NapCatOneBot11Adapter;
logger: LogWrapper;
constructor(url: string, heartbeatInterval: number, secret: string | undefined, coreContext: NapCatCore, onebotContext: NapCatOneBot11Adapter) {
@@ -20,15 +20,13 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
this.url = url;
this.secret = secret;
this.coreContext = coreContext;
this.onebotContext = onebotContext;
this.obContext = onebotContext;
this.logger = coreContext.context.logger;
}
registerHeartBeat() {
// HttpPost 心跳
}
registerActionMap(actionMap: Map<string, BaseAction<any, any>>) {
}
registerAction<T extends BaseAction<P, R>, P, R>(action: T) {
// Passive http adapter does not need to register actions
}