Skip to content

Commit 71ee0c8

Browse files
committed
linting
1 parent cec047e commit 71ee0c8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

dev/src/pool.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class ClientPool<T extends object> {
9393
private readonly maxIdleClients: number,
9494
private readonly clientFactory: (requiresGrpc: boolean) => T,
9595
private readonly clientDestructor: (client: T) => Promise<void> = () =>
96-
Promise.resolve()
96+
Promise.resolve(),
9797
) {
9898
this.lazyLogStringForAllClientIds = new LazyLogStringForAllClientIds({
9999
activeClients: this.activeClients,
@@ -141,7 +141,7 @@ export class ClientPool<T extends object> {
141141
requestTag,
142142
'Re-using existing client [%s] with %s remaining operations',
143143
selectedClientId,
144-
this.concurrentOperationLimit - selectedClientRequestCount
144+
this.concurrentOperationLimit - selectedClientRequestCount,
145145
);
146146
} else {
147147
const newClientId = 'cli' + generateClientId();
@@ -150,7 +150,7 @@ export class ClientPool<T extends object> {
150150
requestTag,
151151
'Creating a new client [%s] (requiresGrpc: %s)',
152152
newClientId,
153-
requiresGrpc
153+
requiresGrpc,
154154
);
155155
selectedClient = this.clientFactory(requiresGrpc);
156156
this.clientIdByClient.set(selectedClient, newClientId);
@@ -193,7 +193,7 @@ export class ClientPool<T extends object> {
193193
requestTag,
194194
'Garbage collecting client [%s] (%s)',
195195
clientId,
196-
this.lazyLogStringForAllClientIds
196+
this.lazyLogStringForAllClientIds,
197197
);
198198
this.activeClients.delete(client);
199199
this.failedClients.delete(client);
@@ -203,7 +203,7 @@ export class ClientPool<T extends object> {
203203
requestTag,
204204
'Garbage collected client [%s] (%s)',
205205
clientId,
206-
this.lazyLogStringForAllClientIds
206+
this.lazyLogStringForAllClientIds,
207207
);
208208
}
209209
}
@@ -337,7 +337,7 @@ export class ClientPool<T extends object> {
337337
/* requestTag= */ null,
338338
'Waiting for %s pending operations to complete before terminating (%s)',
339339
this.opCount,
340-
this.lazyLogStringForAllClientIds
340+
this.lazyLogStringForAllClientIds,
341341
);
342342
await this.terminateDeferred.promise;
343343
}

dev/test/pool.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,23 +381,23 @@ describe('Client pool', () => {
381381
// Create 5 operations, which should schedule 2 operations on the first
382382
// client, 2 on the second and 1 on the third.
383383
const operationPromises = deferredPromises(7);
384-
clientPool.run(REQUEST_TAG, USE_REST, client => {
384+
void clientPool.run(REQUEST_TAG, USE_REST, client => {
385385
expect(client.count).to.be.equal(1);
386386
return operationPromises[0].promise;
387387
});
388-
clientPool.run(REQUEST_TAG, USE_REST, client => {
388+
void clientPool.run(REQUEST_TAG, USE_REST, client => {
389389
expect(client.count).to.be.equal(1);
390390
return operationPromises[1].promise;
391391
});
392392
const thirdOperation = clientPool.run(REQUEST_TAG, USE_REST, client => {
393393
expect(client.count).to.be.equal(2);
394394
return operationPromises[2].promise;
395395
});
396-
clientPool.run(REQUEST_TAG, USE_REST, client => {
396+
void clientPool.run(REQUEST_TAG, USE_REST, client => {
397397
expect(client.count).to.be.equal(2);
398398
return operationPromises[3].promise;
399399
});
400-
clientPool.run(REQUEST_TAG, USE_REST, client => {
400+
void clientPool.run(REQUEST_TAG, USE_REST, client => {
401401
expect(client.count).to.be.equal(3);
402402
return operationPromises[4].promise;
403403
});
@@ -408,7 +408,7 @@ describe('Client pool', () => {
408408

409409
// A newly scheduled operation should use the first client that has a free
410410
// slot.
411-
clientPool.run(REQUEST_TAG, USE_REST, async client => {
411+
void clientPool.run(REQUEST_TAG, USE_REST, async client => {
412412
expect(client.count).to.be.equal(2);
413413
});
414414
});

0 commit comments

Comments
 (0)