MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / _get_ttl_time

Method _get_ttl_time

ui/easydiffusion/task_manager.py:71–72  ·  view source on GitHub ↗
(self, ttl: int)

Source from the content-addressed store, hash-verified

69 self._lock: threading.Lock = threading.Lock()
70
71 def _get_ttl_time(self, ttl: int) -> int:
72 return int(time.time()) + ttl
73
74 def _is_expired(self, timestamp: int) -> bool:
75 return int(time.time()) >= timestamp

Callers 2

keepMethod · 0.95
putMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected