Skip to content

Commit

Permalink
refactor(request): revoke rename (#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 authored Jun 26, 2024
1 parent 2b11918 commit fe6e88b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/darwin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<OVMDarwinEventData>();
private eventSocketPath: string;
private request: Request;
private request: RequestDarwin;

private constructor(private options: OVMDarwinOptions) {}

Expand Down Expand Up @@ -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<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const generateRequest = async (option: RequestOptions): Promise<string> => {
});
};

export class Request {
export class RequestDarwin {
private readonly socketPath: string;

public constructor(socketDir: string, name: string) {
Expand Down

0 comments on commit fe6e88b

Please sign in to comment.