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

Add missing awaits in azure chat store #16645

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

logan-markewich
Copy link
Collaborator

Fixes #16642

@mingqxu7 I would appreciate it if you can test this PR -- I don't actually have access to azure to test this! 😅

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 22, 2024
@@ -408,13 +416,15 @@ def _get_default_metadata(self, key: str) -> dict:
"MessageCount": 0,
}

def _get_or_default_metadata(self, metadata_client: TableClient, key: str) -> dict:
async def _get_or_default_metadata(
self, metadata_client: TableClient, key: str
Copy link
Contributor

Choose a reason for hiding this comment

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

TableClient import in line 7 is unsuitable here.
from azure.data.tables.aio import TableClient is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: AzureChatStore: encountering a TypeError indicating that a 'coroutine' object is not subscriptable
2 participants