mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 05:11:56 +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):
|
||||
self._paused = False
|
||||
|
||||
@RateLimiter(rate_per_second=5)
|
||||
@RateLimiter(rate_per_second=2)
|
||||
def on_modified(self, event):
|
||||
if self._paused: return
|
||||
if self.ignore > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user