From 64b3a7ccef55cc5f40fb45f1a001fc43ba5ccfe2 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 23 Feb 2024 11:54:44 +0100 Subject: [PATCH] refactor: move fixed-queeu to dispatcher and rm node folder --- lib/{node => dispatcher}/fixed-queue.js | 0 lib/dispatcher/pool-base.js | 2 +- test/fixed-queue.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename lib/{node => dispatcher}/fixed-queue.js (100%) diff --git a/lib/node/fixed-queue.js b/lib/dispatcher/fixed-queue.js similarity index 100% rename from lib/node/fixed-queue.js rename to lib/dispatcher/fixed-queue.js diff --git a/lib/dispatcher/pool-base.js b/lib/dispatcher/pool-base.js index 6c524e2a437..93422f832e9 100644 --- a/lib/dispatcher/pool-base.js +++ b/lib/dispatcher/pool-base.js @@ -1,7 +1,7 @@ 'use strict' const DispatcherBase = require('./dispatcher-base') -const FixedQueue = require('../node/fixed-queue') +const FixedQueue = require('./fixed-queue') const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require('../core/symbols') const PoolStats = require('./pool-stats') diff --git a/test/fixed-queue.js b/test/fixed-queue.js index cb878716e44..3cb1b392ff4 100644 --- a/test/fixed-queue.js +++ b/test/fixed-queue.js @@ -3,7 +3,7 @@ const { tspl } = require('@matteo.collina/tspl') const { test } = require('node:test') -const FixedQueue = require('../lib/node/fixed-queue') +const FixedQueue = require('../lib/dispatcher/fixed-queue') test('fixed queue 1', (t) => { t = tspl(t, { plan: 5 })