From fe6e88bf92fee237c24fe2da4244263290eca73a Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Wed, 26 Jun 2024 12:08:27 +0800 Subject: [PATCH] refactor(request): revoke rename (#58) Signed-off-by: Kevin Cui --- src/darwin.ts | 6 +++--- src/request.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/darwin.ts b/src/darwin.ts index d1f58a9..28cb975 100644 --- a/src/darwin.ts +++ b/src/darwin.ts @@ -4,14 +4,14 @@ import { Remitter } from "remitter"; import { OVMDarwinStatusName } from "./type"; import type { OVMDarwinOptions, OVMDarwinEventData, OVMDarwinInfo, OVMDarwinState } from "./type"; import { Restful } from "./event_restful"; -import { Request } from "./request"; +import { RequestDarwin } from "./request"; import path from "node:path"; import { tmpdir } from "node:os"; export class DarwinOVM { private readonly remitter = new Remitter(); private eventSocketPath: string; - private request: Request; + private request: RequestDarwin; private constructor(private options: OVMDarwinOptions) {} @@ -46,7 +46,7 @@ export class DarwinOVM { } private initRequest(): void { - this.request = new Request(this.options.socketDir, this.options.name); + this.request = new RequestDarwin(this.options.socketDir, this.options.name); } private async initPath(): Promise { diff --git a/src/request.ts b/src/request.ts index 68c7bb3..c44e655 100644 --- a/src/request.ts +++ b/src/request.ts @@ -32,7 +32,7 @@ const generateRequest = async (option: RequestOptions): Promise => { }); }; -export class Request { +export class RequestDarwin { private readonly socketPath: string; public constructor(socketDir: string, name: string) {