Gerrit-Client
view release on metacpan or search on metacpan
lib/Gerrit/Client.pm view on Meta::CPAN
change => $change,
patchSet => delete $change->{currentPatchSet},
};
$weakself->_handle_for_each_event($event);
}
},
);
};
# Unfortunately, we have no idea how long it takes between starting the
# stream-events command and when the streaming of events begins, so if
# we query straight away, we could miss some changes which arrive while
# stream-events is e.g. still in ssh negotiation.
# Therefore, introduce this arbitrary delay between when we start
# stream-events and when we'll perform a query.
my $query_timer;
my $do_query_soon = sub {
$query_timer = AE::timer( 4, 0, $do_query );
};
$self->{stream} = Gerrit::Client::stream_events(
( run in 0.446 second using v1.01-cache-2.11-cpan-4d50c553e7e )