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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user