Skip to content

Commit

Permalink
remove async response hook policy (#12529)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapratico authored Jul 14, 2020
1 parent 9284266 commit 4bbcf39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any
from azure.core.credentials import AzureKeyCredential
from azure.core.pipeline.policies import AzureKeyCredentialPolicy
from ._policies_async import AsyncTextAnalyticsResponseHookPolicy
from .._policies import TextAnalyticsResponseHookPolicy
from .._user_agent import USER_AGENT
from .._multiapi import load_generated_api

Expand Down Expand Up @@ -34,11 +34,10 @@ def __init__(self, endpoint, credential, **kwargs):
credential=credential,
sdk_moniker=USER_AGENT,
authentication_policy=_authentication_policy(credential),
custom_hook_policy=AsyncTextAnalyticsResponseHookPolicy(**kwargs),
custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs),
**kwargs
)


async def __aenter__(self) -> "AsyncTextAnalyticsClientBase":
await self._client.__aenter__()
return self
Expand Down

This file was deleted.

0 comments on commit 4bbcf39

Please sign in to comment.