Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $server->on(
- accept => sub {
- my ( $carbon_server, $handle ) = @_;
- my $data;
- read $handle, $data, $carbon_conf->{'carbon_max'};
- $server->reactor->timer(
- 0 => sub {
- $self->{'Update'}->apply($data)
- or
- Sharpener::Log::error('Problem applying carbon update');
- }
- );
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement