Skip to content

Commit d04b983

Browse files
simplify chunk link setter
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent 9ce0803 commit d04b983

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/backend/sea/queue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def __init__(
130130
self._map_lock = threading.Lock()
131131
self.chunk_index_to_link: Dict[int, "ExternalLink"] = {}
132132

133-
def _set_current_chunk_link(self, link: "ExternalLink"):
133+
def _set_current_chunk_link(self):
134+
link = self._current_chunk_link
134135
with self._map_lock:
135136
self.chunk_index_to_link[link.chunk_index] = link
136137

0 commit comments

Comments
 (0)