Skip to content

Change rate-limit behaivior - #270

Open
Yavor16 wants to merge 1 commit into
masterfrom
handle-rate-limits
Open

Yavor16 wants to merge 1 commit into
masterfrom
handle-rate-limits

Conversation

@Yavor16

@Yavor16 Yavor16 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

// *baseclient.ErrorResponse carrying the status code and the captured Retry-After
// header (the 429 body is empty, so the header is all we can rely on). Returns nil for
// any non-429 error.
func asRetryAfterError(err error) *baseclient.RetryAfterError {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could you maybe rename to something more descriptive - like convertToRetryAfterError


_, err := client.StartMtaOperation(models.Operation{})

Ω(err).Should(HaveOccurred())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could you use Expect instead of omega sign since most of the tests In the repo use Expect and it will be more consistent

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