From 6c3f9577676df7233a2dffedbf50237f6321fe86 Mon Sep 17 00:00:00 2001 From: Thomas Petersson <61778143+thomaspet@users.noreply.github.com> Date: Mon, 28 Sep 2020 20:05:35 +0200 Subject: [PATCH] remove duplicate database.connecting check (#115) --- src/db/client.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/db/client.js b/src/db/client.js index 5ea1ecb..ae93f01 100644 --- a/src/db/client.js +++ b/src/db/client.js @@ -47,10 +47,6 @@ export function createConnection(server, database) { async function connect(server, database) { /* eslint no-param-reassign: 0 */ - if (database.connecting) { - throw new Error('There is already a connection in progress for this server. Aborting this new request.'); - } - if (database.connecting) { throw new Error('There is already a connection in progress for this database. Aborting this new request.'); }