diff options
author | Eric Wong <e@80x24.org> | 2020-12-20 06:30:12 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-20 20:39:11 +0000 |
commit | ab243aa2328e2fc4cf895c99c68345e57cc4653c (patch) | |
tree | 4fc0a13b41befb347deacda2968a10d4c3a84665 /lib/PublicInbox/InboxIdle.pm | |
parent | 9fcce78e40b0a7c61797be2aff6c5afeb474568e (diff) | |
download | public-inbox-ab243aa2328e2fc4cf895c99c68345e57cc4653c.tar.gz |
->each_inbox will never attempt to iterate an object without {inboxdir}, and simplify + short-circuit the corresponding code
Diffstat (limited to 'lib/PublicInbox/InboxIdle.pm')
-rw-r--r-- | lib/PublicInbox/InboxIdle.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/PublicInbox/InboxIdle.pm b/lib/PublicInbox/InboxIdle.pm index 2737bbbd..f1cbc012 100644 --- a/lib/PublicInbox/InboxIdle.pm +++ b/lib/PublicInbox/InboxIdle.pm @@ -7,7 +7,6 @@ package PublicInbox::InboxIdle; use strict; use parent qw(PublicInbox::DS); -use Cwd qw(abs_path); use PublicInbox::Syscall qw(EPOLLIN EPOLLET); my $IN_MODIFY = 0x02; # match Linux inotify my $ino_cls; @@ -22,11 +21,7 @@ require PublicInbox::In2Tie if $ino_cls; sub in2_arm ($$) { # PublicInbox::Config::each_inbox callback my ($ibx, $self) = @_; - my $dir = abs_path($ibx->{inboxdir}); - if (!defined($dir)) { - warn "W: $ibx->{inboxdir} not watched: $!\n"; - return; - } + my $dir = $ibx->{inboxdir}; my $inot = $self->{inot}; my $cur = $self->{pathmap}->{$dir} //= []; |