mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:21:31 +00:00
Adjust DirectoryMonitor rate limiting to filter multi-inotify events
This commit is contained in:
parent
b1f4842dc7
commit
6c5361846b
@ -23,7 +23,7 @@ class WebideReloadEventHandler(FileSystemEventHandler):
|
|||||||
def resume(self):
|
def resume(self):
|
||||||
self._paused = False
|
self._paused = False
|
||||||
|
|
||||||
@RateLimiter(rate_per_second=5)
|
@RateLimiter(rate_per_second=2)
|
||||||
def on_modified(self, event):
|
def on_modified(self, event):
|
||||||
if self._paused: return
|
if self._paused: return
|
||||||
if self.ignore > 0:
|
if self.ignore > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user