Skip to content

Commit

Permalink
refactor: update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Dec 22, 2024
1 parent 9188ae3 commit 7fcca74
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Indomitable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { Client, ClientOptions as DiscordJsClientOptions } from 'discord.js
import Cluster, { ClusterSettings } from 'node:cluster';
import EventEmitter from 'node:events';
import Os from 'node:os';
import { clearTimeout } from 'timers';
import { clearTimeout } from 'node:timers';
import { ConcurrencyServer } from './concurrency/ConcurrencyServer';
import { ShardClient } from './client/ShardClient';
import { ClusterManager } from './manager/ClusterManager.js';
import { ClusterManager } from './manager/ClusterManager';
import {
Chunk,
FetchSessions,
Expand Down
1 change: 0 additions & 1 deletion src/client/ShardClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Client, ClientOptions as DiscordJsClientOptions } from 'discord.js
import { Indomitable } from '../Indomitable';
import { EnvProcessData, ClientEvents, ClientEventData } from '../Util';
import { ShardClientUtil } from './ShardClientUtil';
import { BaseWorker } from '../ipc/BaseWorker';
import { ConcurrencyClient } from '../concurrency/ConcurrencyClient';

export interface PartialInternalEvents {
Expand Down
1 change: 0 additions & 1 deletion src/concurrency/ConcurrencyServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ConcurrencyManager } from './ConcurrencyManager';
import { Indomitable } from '../Indomitable';
import { LibraryEvents } from '../Util';
import Http from 'node:http';
import QueryString from 'node:querystring';

/**
* Server that handles identify locks
Expand Down
4 changes: 2 additions & 2 deletions src/ipc/BaseIpc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EventEmitter from 'node:events';
import { Serializable } from 'node:child_process';
import { randomUUID } from 'crypto';
import { Indomitable } from '../Indomitable.js';
import { randomUUID } from 'node:crypto';
import { Indomitable } from '../Indomitable';
import {
InternalAbortSignal,
InternalPromise,
Expand Down
2 changes: 1 addition & 1 deletion src/ipc/BaseWorker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EventEmitter from 'node:events';
import { Serializable } from 'node:child_process';
import { Indomitable } from '../Indomitable';
import { BaseIpc } from './BaseIpc.js';
import { BaseIpc } from './BaseIpc';
import { Message, RawIpcMessage } from '../Util';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/ipc/MainWorker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseIpc } from './BaseIpc.js';
import { ClusterManager } from '../manager/ClusterManager.js';
import { BaseIpc } from './BaseIpc';
import { ClusterManager } from '../manager/ClusterManager';
import { Indomitable } from '../Indomitable';
import {
InternalOps,
Expand Down
6 changes: 3 additions & 3 deletions src/manager/ClusterManager.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Cluster, { Worker } from 'node:cluster';
import { clearTimeout } from 'timers';
import { Indomitable, ShardEventData } from '../Indomitable.js';
import { clearTimeout } from 'node:timers';
import { Indomitable, ShardEventData } from '../Indomitable';
import { MainWorker } from '../ipc/MainWorker';
import { Delay, LibraryEvents } from '../Util.js';
import { Delay, LibraryEvents } from '../Util';

/**
* Options for child processes
Expand Down

0 comments on commit 7fcca74

Please sign in to comment.