Skip to content

Commit

Permalink
update225822582258$
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Medhini Reddy Maryada <[email protected]>
  • Loading branch information
Sai Medhini Reddy Maryada authored and Sai Medhini Reddy Maryada committed Dec 27, 2023
1 parent 17f8eb6 commit 1a01963
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osbenchmark/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,15 @@ async def on_request_end(session, trace_config_ctx, params):
self.client_options["trace_config"] = trace_config

class BenchmarkAsyncOpenSearch(opensearchpy.AsyncOpenSearch, RequestContextHolder):
pass
print("benchmark###################")
async def __aenter__(self) -> Any:
print("enter###############")
return self

async def __aexit__(self, *_: Any) -> None:
print("exit###############")
await self.close()
#pass

if "amazon_aws_log_in" not in self.client_options:
return BenchmarkAsyncOpenSearch(hosts=self.hosts,
Expand Down

0 comments on commit 1a01963

Please sign in to comment.