]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: add missing LeiWatch lazy-load
authorEric Wong <e@80x24.org>
Tue, 24 Aug 2021 13:04:06 +0000 (13:04 +0000)
committerEric Wong <e@80x24.org>
Tue, 24 Aug 2021 20:11:38 +0000 (20:11 +0000)
I'm not sure if this class will actually be needed, but
we need to load it while we're using it.

lib/PublicInbox/LEI.pm

index 4d5c61fe62bb6560c984900da0376416615c25b6..ea3ec0fec36ef7963b8aad218252d004b352bf9b 100644 (file)
@@ -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);