Skip to content

Commit bcdca23

Browse files
committed
comment typo fixes
1 parent ddcfac9 commit bcdca23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export default class Helpers {
616616
let chunkBytes = 0
617617
timeoutRef = setTimeout(onFlushTimeout, flushInterval) // eslint-disable-line
618618

619-
// @ts-expect-error datasoruce is an iterable
619+
// @ts-expect-error datasource is an iterable
620620
for await (const chunk of datasource) {
621621
if (shouldAbort) break
622622
timeoutRef.refresh()
@@ -657,7 +657,7 @@ export default class Helpers {
657657
}
658658

659659
clearTimeout(timeoutRef)
660-
// In some cases the previos http call does not have finished,
660+
// In some cases the previous http call has not finished,
661661
// or we didn't reach the flush bytes threshold, so we force one last operation.
662662
if (!shouldAbort && chunkBytes > 0) {
663663
const send = await semaphore()
@@ -701,8 +701,8 @@ export default class Helpers {
701701
// to guarantee that no more than the number of operations
702702
// allowed to run at the same time are executed.
703703
// It returns a semaphore function which resolves in the next tick
704-
// if we didn't reach the maximim concurrency yet, otherwise it returns
705-
// a promise that resolves as soon as one of the running request has finshed.
704+
// if we didn't reach the maximum concurrency yet, otherwise it returns
705+
// a promise that resolves as soon as one of the running requests has finished.
706706
// The semaphore function resolves a send function, which will be used
707707
// to send the actual bulk request.
708708
// It also returns a finish function, which returns a promise that is resolved

0 commit comments

Comments
 (0)