Argument list of the run method of the loader object
Closed this issue · 2 comments
Hi,
I'm enhancing a web application that should run in a cluster without a shared file system. My idea was to write a custom loader module that syncs with a S3 storage and restarts the web server. A bit like Plack::Loader::Restarter
. Looking at the code I got confused over the argument list of the loader run method.
In Plack::Runner the call is:
$loader->run($server);
In the custom loader modules Plack::Loader::* there argument list has two entries,
sub run {
my($self, $server) = @_;
...
But in in the base module Plack::Loader there is is an extra unused argument:
sub run {
my($self, $server, $builder) = @_;
$server->run($self->{app});
}
Is this a simple oversight or did I miss something? In the former case I could provide a pull request,