Skip to content

Commit 5677cd9

Browse files
clarify comment
1 parent ab0df1e commit 5677cd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ export class ClientSession
727727
: null;
728728

729729
// 1. Record the current monotonic time, which will be used to enforce the 120-second timeout before later retry attempts.
730-
const startTime = this.timeoutContext?.csotEnabled() // This is strictly to appease TS, since the timeoutContext is always CSOT or null
730+
const startTime = this.timeoutContext?.csotEnabled() // This is strictly to appease TS. We must narrow the context to a CSOT context before accessing `.start`.
731731
? this.timeoutContext.start
732732
: processTimeMS();
733733

0 commit comments

Comments
 (0)