Fix incorrect param description collab/miker/request_queuing-squashed-2018-01-16
authorRemington Steed <rjs7@calvin.edu>
Wed, 31 Jan 2018 21:05:52 +0000 (16:05 -0500)
committerRemington Steed <rjs7@calvin.edu>
Wed, 31 Jan 2018 21:09:19 +0000 (16:09 -0500)
Mike confirmed that the code expects "pause" to be an integer. This
commit changes the description to reflect that, and to mention the
default value.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
src/perl/lib/OpenSRF/Application/Slooooooow.pm

index bf218ce..7942f1e 100644 (file)
@@ -34,7 +34,7 @@ __PACKAGE__->register_method(
     argc            => 1,
     signature       => {
         params => [
-            {name => "pause", type => "number", desc => "Seconds to sleep, can be fractional"},
+            {name => "pause", type => "int", desc => "Seconds to sleep (integer, default is 1)"},
             {name => "extra", type => "string", desc => "Extra optional parameter used to inflate the payload size"}
         ],
         return => {