From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 01CEE1F8C6 for ; Tue, 24 Aug 2021 13:04:06 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] lei: add missing LeiWatch lazy-load Date: Tue, 24 Aug 2021 13:04:06 +0000 Message-Id: <20210824130406.32602-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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);