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:
1 parent
a9e3803889
commit
a08049ee0f
1 file changed
+8
@@ -47,6 +47,14 @@ sub publish {
|
|||||||
return $conn->publish($topic, @data);
|
return $conn->publish($topic, @data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub ready {
|
||||||
|
my ($self, $ready_count) = @_;
|
||||||
|
|
||||||
|
$_->{conn}->ready($ready_count) for values %{ $self->{nsqd_conns} };
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#### Argument parsing
|
#### Argument parsing
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user