]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
lei: use async barrier for --import-before
authorEric Wong <e@80x24.org>
Tue, 16 Apr 2024 20:56:29 +0000 (20:56 +0000)
committerEric Wong <e@80x24.org>
Wed, 17 Apr 2024 09:29:39 +0000 (09:29 +0000)
commitd80ce538c826446941576eda5f7363734f94de1f
treea0ae2f3cc63401861676b60bc6c5bfbf90691189
parent4ff8e8d21ab55fdb8d94f8b6fd58aaafd03d8dca
lei: use async barrier for --import-before

Write barriers can take a long time to finish, especially when
commands are issues in parallel.  So handle it asynchronously
without blocking lei-daemon by making EOFpipe a little more
flexible by supporting arguments to the callback function.

This is another step towards improving parallel use of lei.
lib/PublicInbox/EOFpipe.pm
lib/PublicInbox/LeiToMail.pm
lib/PublicInbox/LeiXSearch.pm