From 7669985165b5dacb60902406f2b5a894506bdc45 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Jan 2020 21:17:47 +0000 Subject: ds: add_timer: rename from AddTimer, remove a parameter The class parameter is pointless, especially for an internal sub which only has one external caller in a test. Add a sub prototype while we're at it to get some compile time checking. --- t/ds-leak.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/ds-leak.t b/t/ds-leak.t index 34ffc125..a4a56e0d 100644 --- a/t/ds-leak.t +++ b/t/ds-leak.t @@ -20,7 +20,7 @@ if ('close-on-exec for epoll and kqueue') { my ($r, $w); pipe($r, $w) or die "pipe: $!"; - PublicInbox::DS->AddTimer(0, sub { $pid = spawn([qw(sleep 10)]) }); + PublicInbox::DS::add_timer(0, sub { $pid = spawn([qw(sleep 10)]) }); PublicInbox::DS->EventLoop; ok($pid, 'subprocess spawned'); -- cgit v1.2.3-24-ge0c7