Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplifytry_acquire method#245

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
JoaquinPolonuer wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromrefactor_try_acquire

Conversation

@JoaquinPolonuer
Copy link

No description provided.

@JoaquinPolonuerJoaquinPolonuer changed the titleRefactor try acquireSimplifytry_acquire methodFeb 24, 2025
@JoaquinPolonuer
Copy link
Author

JoaquinPolonuer commentedFeb 24, 2025
edited
Loading

Moved this here fromllmclient library. Will implement tests to check iftry_acquire works as expected.

Copy link
Collaborator

@jamesbrazajamesbraza left a comment

Choose a reason for hiding this comment

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

Nice work, LGTM

withpytest.raises(TimeoutError):
awaitGLOBAL_LIMITER.try_acquire(("get","test"),acquire_timeout=2)

# Then we pass an impossible limit, but with a timeour high enough to succeed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# Then we pass an impossible limit, but with atimeour high enough to succeed
# Then we pass an impossible limit, but with atimeout high enough to succeed

Re-reading this, I just noticed a typo

Copy link
Collaborator

Choose a reason for hiding this comment

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

For fun I madecodespell-project/codespell#3656 for this, lol

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jamesbrazajamesbrazajamesbraza approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@JoaquinPolonuer@jamesbraza

[8]ページ先頭

©2009-2025 Movatter.jp