Skip to content

Commit 32fb397

Browse files
style: fix Prettier formatting
1 parent 12de2ce commit 32fb397

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/scenarios/client/sse-retry.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ export class SSERetryScenario implements Scenario {
239239

240240
const tooEarly = actualDelay < minExpected;
241241
const slightlyLate = actualDelay > maxExpected;
242-
const veryLate =
243-
actualDelay > this.retryValue * this.VERY_LATE_MULTIPLIER;
242+
const veryLate = actualDelay > this.retryValue * this.VERY_LATE_MULTIPLIER;
244243
const withinTolerance = !tooEarly && !slightlyLate;
245244

246245
let status: 'SUCCESS' | 'FAILURE' | 'WARNING' = 'SUCCESS';

src/scenarios/server/sse-polling.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ export class ServerSSEPollingScenario implements ClientScenario {
9898

9999
const reader = response.body
100100
.pipeThrough(new TextDecoderStream())
101-
.pipeThrough(new EventSourceParserStream({
102-
onRetry: (retryMs: number) => {
103-
hasRetryField = true;
104-
retryValue = retryMs;
105-
}
106-
}))
101+
.pipeThrough(
102+
new EventSourceParserStream({
103+
onRetry: (retryMs: number) => {
104+
hasRetryField = true;
105+
retryValue = retryMs;
106+
}
107+
})
108+
)
107109
.getReader();
108110

109111
// Read events with timeout

0 commit comments

Comments
 (0)