LockFile doesn't need to hold on to _database_location

This commit is contained in:
jesopo 2019-10-11 14:00:02 +01:00
parent 175f90f6a2
commit daeb37226a

View file

@ -5,7 +5,6 @@ EXPIRATION = 60 # 1 minute
class LockFile(PollHook.PollHook):
def __init__(self, database_location: str):
self._database_location = database_location
self._lock_location = "%s.lock" % database_location
self._next_lock = None