mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
Apply a reasonable timeout to this way.
The notification should be basically instantaneous...
This commit is contained in:
parent
b2facd133c
commit
5cf223645d
@ -536,6 +536,7 @@ class FileOperationsHelper(object):
|
||||
|
||||
We could write this as a mixin instead; might fit existing style better?
|
||||
"""
|
||||
_timeout = 5.0
|
||||
|
||||
def __init__(self, uploader, inject_events=False):
|
||||
self._uploader = uploader
|
||||
@ -566,7 +567,7 @@ class FileOperationsHelper(object):
|
||||
f.write(contents)
|
||||
|
||||
self._maybe_notify(fname, self._inotify.IN_CLOSE_WRITE)
|
||||
return d
|
||||
return d.addTimeout(self._timeout, reactor)
|
||||
|
||||
@log_call_deferred(action_type=u"fileops:mkdir")
|
||||
def mkdir(self, path_u):
|
||||
|
Loading…
Reference in New Issue
Block a user