Skip to content

Commit

Permalink
refactor: splice in retry
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed May 12, 2020
1 parent 785c3db commit e7a1ef2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,10 @@ class Parser extends HTTPParser {
process.nextTick(callback, err, null)
}
}
client[kQueue].splice(0, client[kInflight])
client[kQueue].splice(0, client[kInflight], ...retry)
client[kInflight] = 0
client[kComplete] = 0

while (retry.length) {
client[kQueue].unshift(retry.pop())
}

resume(client)
}
}
Expand Down

0 comments on commit e7a1ef2

Please sign in to comment.