]> Sergey Matveev's repositories - public-inbox.git/commit
www_stream: use DESTROY to cleanup temporary gits
authorEric Wong <e@80x24.org>
Sat, 1 Oct 2022 18:52:50 +0000 (15:52 -0300)
committerEric Wong <e@80x24.org>
Sat, 1 Oct 2022 23:02:18 +0000 (23:02 +0000)
commitac22adc97342323e056bb36f9434458cc822e7d9
treef6d3ac9563a203668e3a57b97085335035b12b89
parentfa04201baae9d1043e37cf8ef4e5a33fdd0498ff
www_stream: use DESTROY to cleanup temporary gits

Relying on a timer to handle cleanup in f9ac22a4b485 was
sub-optimal since the delay could prove expensive under heavy
traffic.  So rely on ->DESTROY instead since we we no longer
hold reference cycles by the time the show_blob callback
executes.

Fixes: f9ac22a4b485 ("git_async_cat: automatically cleanup temporary gits")
lib/PublicInbox/GitAsyncCat.pm
lib/PublicInbox/ViewVCS.pm
lib/PublicInbox/WwwStream.pm