unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] lei: add missing LeiWatch lazy-load
@ 2021-08-24 13:04 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-08-24 13:04 UTC (permalink / raw)
  To: meta

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 | 1 +
 1 file changed, 1 insertion(+)

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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-24 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 13:04 [PATCH] lei: add missing LeiWatch lazy-load Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).