File tree 4 files changed +16
-16
lines changed
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ function Postgres(a, b) {
202
202
}
203
203
204
204
async function reserve ( ) {
205
- const q = Queue ( )
205
+ const queue = Queue ( )
206
206
const c = open . length
207
207
? open . shift ( )
208
208
: await new Promise ( r => {
@@ -211,8 +211,8 @@ function Postgres(a, b) {
211
211
} )
212
212
213
213
move ( c , reserved )
214
- c . reserved = ( ) => q . length
215
- ? c . execute ( q . shift ( ) )
214
+ c . reserved = ( ) => queue . length
215
+ ? c . execute ( queue . shift ( ) )
216
216
: move ( c , reserved )
217
217
c . reserved . release = true
218
218
@@ -226,7 +226,7 @@ function Postgres(a, b) {
226
226
227
227
function handler ( q ) {
228
228
c . queue === full
229
- ? q . push ( q )
229
+ ? queue . push ( q )
230
230
: c . execute ( q ) || move ( c , full )
231
231
}
232
232
}
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ function Postgres(a, b) {
201
201
}
202
202
203
203
async function reserve ( ) {
204
- const q = Queue ( )
204
+ const queue = Queue ( )
205
205
const c = open . length
206
206
? open . shift ( )
207
207
: await new Promise ( r => {
@@ -210,8 +210,8 @@ function Postgres(a, b) {
210
210
} )
211
211
212
212
move ( c , reserved )
213
- c . reserved = ( ) => q . length
214
- ? c . execute ( q . shift ( ) )
213
+ c . reserved = ( ) => queue . length
214
+ ? c . execute ( queue . shift ( ) )
215
215
: move ( c , reserved )
216
216
c . reserved . release = true
217
217
@@ -225,7 +225,7 @@ function Postgres(a, b) {
225
225
226
226
function handler ( q ) {
227
227
c . queue === full
228
- ? q . push ( q )
228
+ ? queue . push ( q )
229
229
: c . execute ( q ) || move ( c , full )
230
230
}
231
231
}
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ function Postgres(a, b) {
202
202
}
203
203
204
204
async function reserve ( ) {
205
- const q = Queue ( )
205
+ const queue = Queue ( )
206
206
const c = open . length
207
207
? open . shift ( )
208
208
: await new Promise ( r => {
@@ -211,8 +211,8 @@ function Postgres(a, b) {
211
211
} )
212
212
213
213
move ( c , reserved )
214
- c . reserved = ( ) => q . length
215
- ? c . execute ( q . shift ( ) )
214
+ c . reserved = ( ) => queue . length
215
+ ? c . execute ( queue . shift ( ) )
216
216
: move ( c , reserved )
217
217
c . reserved . release = true
218
218
@@ -226,7 +226,7 @@ function Postgres(a, b) {
226
226
227
227
function handler ( q ) {
228
228
c . queue === full
229
- ? q . push ( q )
229
+ ? queue . push ( q )
230
230
: c . execute ( q ) || move ( c , full )
231
231
}
232
232
}
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ function Postgres(a, b) {
201
201
}
202
202
203
203
async function reserve ( ) {
204
- const q = Queue ( )
204
+ const queue = Queue ( )
205
205
const c = open . length
206
206
? open . shift ( )
207
207
: await new Promise ( r => {
@@ -210,8 +210,8 @@ function Postgres(a, b) {
210
210
} )
211
211
212
212
move ( c , reserved )
213
- c . reserved = ( ) => q . length
214
- ? c . execute ( q . shift ( ) )
213
+ c . reserved = ( ) => queue . length
214
+ ? c . execute ( queue . shift ( ) )
215
215
: move ( c , reserved )
216
216
c . reserved . release = true
217
217
@@ -225,7 +225,7 @@ function Postgres(a, b) {
225
225
226
226
function handler ( q ) {
227
227
c . queue === full
228
- ? q . push ( q )
228
+ ? queue . push ( q )
229
229
: c . execute ( q ) || move ( c , full )
230
230
}
231
231
}
You can’t perform that action at this time.
0 commit comments