-
Notifications
You must be signed in to change notification settings - Fork 7
chore: update workflows, examples, tests, readmes for api keys v2 #514
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
Conversation
| def example_API_CredentialProviderFromEnvVar(): | ||
| CredentialProvider.from_environment_variable("MOMENTO_API_KEY") | ||
| CredentialProvider.from_environment_variable("V1_API_KEY") | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be better to fix in the dev docs parsing logic, but I'm pretty sure the two blank lines between the code and #end example end up included in the code snippet in docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have a ticket to make updates to the dev docs site for api keys v2, will make a note about this there
| _logger.info("hello") | ||
| with TopicClient(TopicConfigurations.Default.v1(), _AUTH_PROVIDER) as client: | ||
| with TopicClient( | ||
| TopicConfigurations.Default.v1().with_client_timeout(timedelta(seconds=10)), _AUTH_PROVIDER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we need to override the client timeout, I think we should add a Laptop TopicConfiguration so we don't need to clutter the examples. That can be a follow up thing though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made a ticket here: #515
Work towards https://github.com/momentohq/dev-eco-issue-tracker/issues/1276