Skip to content
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

cut!: remove nonce options #34

Merged
merged 5 commits into from
Oct 30, 2024
Merged

Conversation

Two-Hearts
Copy link
Contributor

@Two-Hearts Two-Hearts commented Oct 25, 2024

This PR removes NoNonce and Nonce fields from RequestOptions.

After this PR, tspclient.Request created from tspclient.NewRequest will always include a nonce generated by tspclient-go built-in nonce generator.

Resolves #32

Signed-off-by: Patrick Zheng <[email protected]>
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.17%. Comparing base (718b4b8) to head (640b430).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   94.56%   95.17%   +0.60%     
==========================================
  Files          19       19              
  Lines         939      933       -6     
==========================================
  Hits          888      888              
+ Misses         34       30       -4     
+ Partials       17       15       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Patrick Zheng <[email protected]>
JeyJeyGao
JeyJeyGao previously approved these changes Oct 25, 2024
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

@shizhMSFT shizhMSFT changed the title fix: updated nonce cut!: remove nonce options Oct 28, 2024
request.go Outdated Show resolved Hide resolved
shizhMSFT
shizhMSFT previously approved these changes Oct 29, 2024
Copy link

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM with suggestions

request_test.go Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Copy link

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@Two-Hearts Two-Hearts merged commit 90a141e into notaryproject:main Oct 30, 2024
9 checks passed
@Two-Hearts Two-Hearts deleted the nonce branch October 30, 2024 01:53
@Two-Hearts Two-Hearts mentioned this pull request Dec 5, 2024
6 tasks
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.

Nonce enhancement
4 participants