X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FNNTP.pm;h=76f14bbd97d9bb943ad50bdddee4635c8de691f3;hb=10ee3548084c125f;hp=6df19f322b6e03aaf91ba76f61a524d047be7604;hpb=f977826a17f8735e6947dd2da380df8c6d0b38d8;p=public-inbox.git diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 6df19f32..76f14bbd 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -553,8 +553,7 @@ sub cmd_article ($;$) { return $smsg unless ref $smsg; set_art($self, $art); $smsg->{nntp} = $self; - git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg); - undef; + ${git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg)}; } sub cmd_head ($;$) { @@ -564,8 +563,7 @@ sub cmd_head ($;$) { set_art($self, $art); $smsg->{nntp} = $self; $smsg->{nntp_code} = 221; - git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg); - undef; + ${git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg)}; } sub cmd_body ($;$) { @@ -575,8 +573,7 @@ sub cmd_body ($;$) { set_art($self, $art); $smsg->{nntp} = $self; $smsg->{nntp_code} = 222; - git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg); - undef; + ${git_async_cat($self->{ng}->git, $smsg->{blob}, \&blob_cb, $smsg)}; } sub cmd_stat ($;$) {