Skip to content

Commit aa4fc0a

Browse files
author
Jesse Whitehouse
committed
Revert "Update comments for clarity"
This reverts commit 259702d. Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent 259702d commit aa4fc0a

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/databricks/sql/auth/thrift_http_client.py

-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ def setCustomHeaders(self, headers: Dict[str, str]):
9393
super().setCustomHeaders(headers)
9494

9595
def open(self):
96-
97-
# self.__pool replaces the self.__http used by the original THttpClient
9896
if self.scheme == "http":
9997
pool_class = HTTPConnectionPool
10098
elif self.scheme == "https":

src/databricks/sql/thrift_backend.py

-3
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,7 @@ def attempt_request(attempt):
317317
try:
318318
logger.debug("Sending request: {}".format(request))
319319
response = method(request)
320-
321-
# Calling `close()` here releases the active HTTP connection back to the pool
322320
self._transport.close()
323-
324321
logger.debug("Received response: {}".format(response))
325322
return response
326323
except OSError as err:

0 commit comments

Comments
 (0)