Skip to content

Commit a23cecd

Browse files
Abel Milashclaude
andcommitted
Remove _operation_context init from _AsyncODataClient (now in _ODataBase)
Follows the same cleanup applied to the sync _ODataClient on the refactoring branch. _operation_context is now initialized once in _ODataBase.__init__ and inherited by both sync and async subclasses. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 66c2469 commit a23cecd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/PowerPlatform/Dataverse/aio/data/_async_odata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def __init__(
8080
session=session,
8181
logger=self._http_logger,
8282
)
83-
ctx_obj = self.config.operation_context
84-
self._operation_context = ctx_obj.user_agent_context if ctx_obj else None
8583
# Prevents concurrent coroutines from racing through the picklist TTL check
8684
# and issuing redundant metadata fetches.
8785
self._picklist_cache_lock: asyncio.Lock = asyncio.Lock()

0 commit comments

Comments
 (0)