Skip to content

GODRIVER-1528 retryableWrites spec improvements #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2020

Conversation

iwysiu
Copy link
Contributor

@iwysiu iwysiu commented Mar 13, 2020

No description provided.

@iwysiu iwysiu requested review from jyemin and divjotarora March 13, 2020 18:16
Copy link
Contributor

@divjotarora divjotarora left a comment

Choose a reason for hiding this comment

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

A few comments:

  1. All uses of RetryMode should have a nil check.
  2. Instead of checking against RetryNone, can we use the RetryMode.Enabled function (see driver.go)?
  3. Some of the conditions are getting long. Can we split them up into multiple lines and temporary variables for readability?

@iwysiu iwysiu requested a review from divjotarora March 16, 2020 14:59
Copy link
Contributor

@divjotarora divjotarora left a comment

Choose a reason for hiding this comment

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

One nit but otherwise LGTM.

Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

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

LGTM

@iwysiu iwysiu merged commit 4a201aa into mongodb:master Mar 17, 2020
@iwysiu iwysiu deleted the GODRIVER-1528 branch March 17, 2020 20:19
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.

3 participants