Skip to content

Commit 98b4db2

Browse files
ArrayRecord Teamcopybara-github
authored andcommitted
Moving timeout logic out of C++ code and into client.py
PiperOrigin-RevId: 516206077
1 parent 9474099 commit 98b4db2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

python/array_record_data_source.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __getitem__(self, record_keys: Sequence[int]) -> Sequence[T]:
3434
import bisect
3535
from concurrent import futures
3636
import dataclasses
37-
import hashlib
3837
import itertools
3938
import os
4039
import pathlib
@@ -312,13 +311,6 @@ def close(self):
312311
reader.close()
313312
self._readers[reader_idx] = None
314313

315-
def __repr__(self) -> str:
316-
"""Storing a hash of paths since paths can be a very long list."""
317-
h = hashlib.sha1()
318-
for p in self._paths:
319-
h.update(p.encode())
320-
return f"ArrayRecordDataSource(hash_of_paths={h.hexdigest()})"
321-
322314

323315
def _get_flag_value(flag: flags.FlagHolder[int]) -> int:
324316
"""Retrieves the flag value or the default if run outside of absl."""

0 commit comments

Comments
 (0)