Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Sep 18, 2024
1 parent 3516c48 commit a116f65
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions packages/node/src/createServer.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import path from "node:path";
import { createConfigFile } from "./createConfigFile";
import type { ConfluxConfig, ServerConfig } from "./types";
import {
getBinPath,
cleanup,
checkPort,
checkIsConfluxNodeRunning,
checkPort,
cleanup,
getBinPath,
} from "./helper";
import { ConfluxServer } from "./server";
import type { ConfluxConfig, ServerConfig } from "./types";

export type createServerReturnType = {
start: () => Promise<void>;
Expand Down
10 changes: 5 additions & 5 deletions packages/node/src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import fs from "node:fs";
import path from "node:path";
import detectPort from "detect-port";
import {
Chain,
createPublicClient,
http,
PublicClient,
Transport,
type Chain,
type PublicClient,
type Transport,
createPublicClient,
webSocket,
} from "cive";
import { defineChain } from "cive/utils";
import detectPort from "detect-port";

type CheckEnvironmentReturnType =
| {
Expand Down
8 changes: 4 additions & 4 deletions packages/node/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import path from "path";
import { type ChildProcessWithoutNullStreams, spawn } from "node:child_process";
import path from "node:path";
import { onExit } from "signal-exit";
import { CONFIG_FILE_NAME, type FinalConfigs } from "./createConfigFile";
import { cleanup, getBinPath, waitConfluxNodeReady } from "./helper";
import { ServerConfig } from "./types";
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
import { CONFIG_FILE_NAME, FinalConfigs } from "./createConfigFile";
import type { ServerConfig } from "./types";

export class ConfluxServer {
config: FinalConfigs & ServerConfig;
Expand Down

0 comments on commit a116f65

Please sign in to comment.