Add ready() to ::Client

Allow clients to update the ready count dynamically

Signed-off-by: Pedro Melo <melo@simplicidade.org>
This commit is contained in:
Pedro Melo
2014-10-23 07:08:41 +01:00
parent a9e3803889
commit a08049ee0f

View File

@@ -47,6 +47,14 @@ sub publish {
return $conn->publish($topic, @data);
}
sub ready {
my ($self, $ready_count) = @_;
$_->{conn}->ready($ready_count) for values %{ $self->{nsqd_conns} };
return;
}
#### Argument parsing