Advertisement
Guest User

Untitled

a guest
Feb 12th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $server->on(
  2. accept => sub {
  3. my ( $carbon_server, $handle ) = @_;
  4. my $data;
  5. read $handle, $data, $carbon_conf->{'carbon_max'};
  6. $server->reactor->timer(
  7. 0 => sub {
  8. $self->{'Update'}->apply($data)
  9. or
  10. Sharpener::Log::error('Problem applying carbon update');
  11. }
  12. );
  13. }
  14. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement