Skip to content

Commit 5c6ce1d

Browse files
committed
ref: fix typo
1 parent 9ce2d8e commit 5c6ce1d

File tree

1 file changed

+3
-3
lines changed
  • packages/core/src/utils-hoist/instrument

1 file changed

+3
-3
lines changed

packages/core/src/utils-hoist/instrument/fetch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function instrumentFetch(onFetchResolved?: (response: Response) => void, skipNat
118118
});
119119
}
120120

121-
async function resloveReader(reader: WebReadableStreamDefaultReader, onFinishedResolving: () => void): Promise<void> {
121+
async function resolveReader(reader: WebReadableStreamDefaultReader, onFinishedResolving: () => void): Promise<void> {
122122
let running = true;
123123
while (running) {
124124
try {
@@ -141,7 +141,7 @@ async function resloveReader(reader: WebReadableStreamDefaultReader, onFinishedR
141141
*
142142
* This function attaches a custom `cancel` behavior to both the parent `Response` body and its `getReader()` method.
143143
* When the parent stream or its reader is canceled, it triggers the cancellation of the child stream as well.
144-
* The function also monitors the resolution of the child's body stream using `resloveReader` and performs cleanup.
144+
* The function also monitors the resolution of the child's body stream using `resolveReader` and performs cleanup.
145145
*
146146
* @param {Response} res - The `Response` object whose body stream will be resolved.
147147
* @param {Response} parentRes - The parent `Response` object whose body stream is linked to the cancellation of `res`.
@@ -204,7 +204,7 @@ export function resolveResponse(
204204
return reader;
205205
}) as any;
206206

207-
resloveReader(responseReader, onFinishedResolving).finally(() => {
207+
resolveReader(responseReader, onFinishedResolving).finally(() => {
208208
try {
209209
responseReader.releaseLock();
210210
body.cancel().catch(() => {

0 commit comments

Comments
 (0)