From 6f095470ade2acd5d46518c5f182428cc4e4a983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 11 Aug 2024 11:12:23 +0800 Subject: [PATCH] chore: NETWORK --- src/onebot/network/active-http.ts | 5 ++--- src/onebot/network/passive-http.ts | 1 - src/onebot/network/passive-websocket.ts | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/onebot/network/active-http.ts b/src/onebot/network/active-http.ts index ad4dfbae..ca41dc92 100644 --- a/src/onebot/network/active-http.ts +++ b/src/onebot/network/active-http.ts @@ -1,6 +1,5 @@ import { IOB11NetworkAdapter, OB11EmitEventContent } from '@/onebot/network/index'; import BaseAction from '@/onebot/action/BaseAction'; -import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent'; import { createHmac } from 'crypto'; import { LogWrapper } from '@/common/utils/log'; import { QuickAction, QuickActionEvent } from '../types'; @@ -69,11 +68,11 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter { async open() { // HTTP adapter does not need to establish a persistent connection - console.log('HTTP adapter is ready to send events.'); + //console.log('HTTP adapter is ready to send events.'); } close() { // HTTP adapter does not need to close a persistent connection - console.log('HTTP adapter does not maintain a persistent connection.'); + // console.log('HTTP adapter does not maintain a persistent connection.'); } } diff --git a/src/onebot/network/passive-http.ts b/src/onebot/network/passive-http.ts index 56fa5764..859aa767 100644 --- a/src/onebot/network/passive-http.ts +++ b/src/onebot/network/passive-http.ts @@ -1,5 +1,4 @@ import { IOB11NetworkAdapter, OB11EmitEventContent } from './index'; -import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent'; import BaseAction from '@/onebot/action/BaseAction'; import express, { Express, Request, Response } from 'express'; import http from 'http'; diff --git a/src/onebot/network/passive-websocket.ts b/src/onebot/network/passive-websocket.ts index 16a22b40..8a5856cd 100644 --- a/src/onebot/network/passive-websocket.ts +++ b/src/onebot/network/passive-websocket.ts @@ -1,5 +1,4 @@ import { IOB11NetworkAdapter, OB11EmitEventContent } from './index'; -import { OB11BaseEvent } from '@/onebot/event/OB11BaseEvent'; import urlParse from 'url'; import BaseAction from '@/onebot/action/BaseAction'; import { WebSocket, WebSocketServer } from 'ws';