Skip to content

Commit

Permalink
style: explicit promise result
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Dec 9, 2020
1 parent 751306a commit bbb0daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export function createClient(options: ClientOptions): Client {
if (state.retrying && callDepth === 0) {
if (retryWaiting.length) {
// if others are waiting for retry, I'll wait too
await new Promise((resolve) => retryWaiting.push(resolve));
await new Promise<void>((resolve) => retryWaiting.push(resolve));
} else {
retryWaiting.push(() => {
/** fake waiter to lead following connects in the `retryWaiting` queue */
Expand Down

0 comments on commit bbb0daa

Please sign in to comment.