]> Sergey Matveev's repositories - public-inbox.git/commit
watch: simplify internal structures
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:04:00 +0000 (10:04 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:29:39 +0000 (22:29 +0000)
commitfd7140782db39585e90e59f5fd0801bf42490570
tree5dfec55dda4e8d9fc62624d895397b08f0359a34
parent35e31227139e401cf7845d824a1b4e6a1de56fe3
watch: simplify internal structures

We won't be attempting to reuse Mail::IMAPConnections used to
check authentication info, for now, so stop storing
$self->{mics}.

We can also combine $poll initialization for IMAP and NNTP
to avoid data structure duplication.  Furthermore, rely on
autovivification to create {idle_pids} and {poll_pids}.
lib/PublicInbox/WatchMaildir.pm