Skip to content

Commit 2df6425

Browse files
chore(typo): resolve typo in src/progress.ts (#4041)
1 parent 857abcf commit 2df6425

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/server/progress.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class ProgressController {
5858
private _state: 'before' | 'running' | 'aborted' | 'finished' = 'before';
5959
private _deadline: number = 0;
6060
private _timeout: number = 0;
61-
private _logRecordring: string[] = [];
61+
private _logRecording: string[] = [];
6262
private _listener?: (result: ProgressResult) => Promise<void>;
6363

6464
constructor() {
@@ -88,7 +88,7 @@ export class ProgressController {
8888
aborted: this._abortedPromise,
8989
log: message => {
9090
if (this._state === 'running')
91-
this._logRecordring.push(message);
91+
this._logRecording.push(message);
9292
debugLogger.log(this._logName, message);
9393
},
9494
timeUntilDeadline: () => this._deadline ? this._deadline - monotonicTime() : 2147483647, // 2^31-1 safe setTimeout in Node.
@@ -117,10 +117,10 @@ export class ProgressController {
117117
await this._listener({
118118
startTime,
119119
endTime: monotonicTime(),
120-
logs: this._logRecordring,
120+
logs: this._logRecording,
121121
});
122122
}
123-
this._logRecordring = [];
123+
this._logRecording = [];
124124
return result;
125125
} catch (e) {
126126
this._aborted();
@@ -131,15 +131,15 @@ export class ProgressController {
131131
await this._listener({
132132
startTime,
133133
endTime: monotonicTime(),
134-
logs: this._logRecordring,
134+
logs: this._logRecording,
135135
error: e,
136136
});
137137
}
138138
rewriteErrorMessage(e,
139139
e.message +
140-
formatLogRecording(this._logRecordring) +
140+
formatLogRecording(this._logRecording) +
141141
kLoggingNote);
142-
this._logRecordring = [];
142+
this._logRecording = [];
143143
throw e;
144144
}
145145
}

0 commit comments

Comments
 (0)