From 11fb69874f605e4fc6922aafdafb44917c05ea2f Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 23 Feb 2024 11:56:13 +0100 Subject: [PATCH] refactor: move fixed-queeu to dispatcher and rm node folder (#2827) --- 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 })