Skip to content

Commit 4830671

Browse files
committed
Replace argument assignation with signatures on MemoryLimit
Reference: https://progress.opensuse.org/issues/178948
1 parent b5ecb3e commit 4830671

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/OpenQA/WebAPI/Plugin/MemoryLimit.pm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
# SPDX-License-Identifier: GPL-2.0-or-later
33

44
package OpenQA::WebAPI::Plugin::MemoryLimit;
5-
use Mojo::Base 'Mojolicious::Plugin';
5+
use Mojo::Base 'Mojolicious::Plugin', -signatures;
66

77
use BSD::Resource 'getrusage';
88
use Mojo::IOLoop;
99

1010
# Stop prefork workers gracefully once they reach a certain size
11-
sub register {
12-
my ($self, $app) = @_;
13-
11+
sub register ($self, $app) {
1412
my $max = $app->config->{global}{max_rss_limit};
1513
return unless $max && $max > 0;
1614

0 commit comments

Comments
 (0)