From: Eric Wong Date: Tue, 24 Aug 2021 13:04:06 +0000 (+0000) Subject: lei: add missing LeiWatch lazy-load X-Git-Tag: v1.7.0~496 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9d6b13687e0e4403523bff301adb4aae027dfdb1;p=public-inbox.git lei: add missing LeiWatch lazy-load I'm not sure if this class will actually be needed, but we need to load it while we're using it. --- diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 4d5c61fe..ea3ec0fe 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1423,6 +1423,7 @@ sub refresh_watches { ++$renames; } next if $watches->{$f}; # may be set to pause + require PublicInbox::LeiWatch; $watches->{$f} = PublicInbox::LeiWatch->new($f); $seen{$f} = undef; add_maildir_watch($cd, $cfg_f);