Skip to content

Conversation

@cctdaniel
Copy link
Contributor

addressed #9 comments by @SEJeff

@cctdaniel cctdaniel requested a review from SEJeff December 1, 2021 13:49
@cctdaniel cctdaniel self-assigned this Dec 1, 2021
assert ratelimit._get_overall_interval() == 1.0
assert ratelimit._get_method_interval() == 1.0
assert ratelimit._get_connection_interval() == 1.0

Copy link
Contributor

Choose a reason for hiding this comment

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

Outstanding, thanks!

# 1) these values are not expected to be mutated
# 2) these values are used in get_account_info_resp() and get_program_accounts_resp()
# and so if they are passed in as fixtures, the functions will complain for the args
# while mocking the respective functions
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 this is a good comment. Makes maintaining things in the future much easier.

Copy link
Contributor

@SEJeff SEJeff left a comment

Choose a reason for hiding this comment

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

You'll probably want to rebase things once #13 is merged, but this looks great to me. Please don't merge until the tests are passing in CI.

@cctdaniel cctdaniel merged commit 4d89bde into pyth-network:main Dec 1, 2021
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