Skip to content

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin requested a review from rozza July 16, 2024 03:31
vbabanin added 2 commits July 15, 2024 20:42
JAVA-5526
JAVA-5526
@vbabanin vbabanin mentioned this pull request Jul 16, 2024
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - had one optional comment / observation.

assertNotNull(timeout);
timeout = startTimeout(timeoutSettings.getTimeoutMS());
public void resetTimeoutIfPresent() {
if (hasTimeoutMS()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment: The method naming makes the assertNotNull seem restrictive. Should it be part of the if statement?

I guess its a bug if this is called if there isnt a timeout set - its just slightly unclear thats the case.

@vbabanin vbabanin self-assigned this Jul 17, 2024
@vbabanin vbabanin merged commit 27d9dee into mongodb:CSOT Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants