Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jovany-wang committed Jul 6, 2023
1 parent be7f321 commit 51e0f09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions fed/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def _start(self):
def __check_func():
self._check_sending_objs()

# with LockGuard(self._lock_on_send_thread):
self._check_send_thread = threading.Thread(target=__check_func)
self._check_send_thread.start()
logger.info('Start check sending thread.')
Expand Down Expand Up @@ -99,4 +98,3 @@ def _signal_exit():
break

logger.info('Check sending thread was exited.')
logger.info('Clearing sending queue.')
11 changes: 0 additions & 11 deletions fed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,3 @@ def validate_cluster_info(cluster: dict):
"""
for _, info in cluster.items():
validate_address(info['address'])


class LockGuard:
def __init__(self, lock):
self._lock = lock

def __enter__(self):
self._lock.acquire()

def __exit__(self, exc_type, exc_val, exc_tb):
self._lock.release()

0 comments on commit 51e0f09

Please sign in to comment.