mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Formatting
This commit is contained in:
@@ -480,8 +480,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
|
|||||||
// Try the proposer nodes last, since it's likely that they don't have a
|
// Try the proposer nodes last, since it's likely that they don't have a
|
||||||
// great view of attestations on the network.
|
// great view of attestations on the network.
|
||||||
let unsigned_block = proposer_fallback
|
let unsigned_block = proposer_fallback
|
||||||
.request_proposers_last(
|
.request_proposers_last(|beacon_node| async move {
|
||||||
|beacon_node| async move {
|
|
||||||
let _get_timer = metrics::start_timer_vec(
|
let _get_timer = metrics::start_timer_vec(
|
||||||
&metrics::BLOCK_SERVICE_TIMES,
|
&metrics::BLOCK_SERVICE_TIMES,
|
||||||
&[metrics::BEACON_BLOCK_HTTP_GET],
|
&[metrics::BEACON_BLOCK_HTTP_GET],
|
||||||
@@ -502,8 +501,7 @@ impl<T: SlotClock + 'static, E: EthSpec> BlockService<T, E> {
|
|||||||
e
|
e
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
},
|
})
|
||||||
)
|
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
self_ref
|
self_ref
|
||||||
|
|||||||
@@ -740,9 +740,7 @@ async fn poll_beacon_attesters<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
let subscriptions_ref = &subscriptions;
|
let subscriptions_ref = &subscriptions;
|
||||||
let subscription_result = duties_service
|
let subscription_result = duties_service
|
||||||
.beacon_nodes
|
.beacon_nodes
|
||||||
.request(
|
.request(ApiTopic::Subscriptions, |beacon_node| async move {
|
||||||
ApiTopic::Subscriptions,
|
|
||||||
|beacon_node| async move {
|
|
||||||
let _timer = metrics::start_timer_vec(
|
let _timer = metrics::start_timer_vec(
|
||||||
&metrics::DUTIES_SERVICE_TIMES,
|
&metrics::DUTIES_SERVICE_TIMES,
|
||||||
&[metrics::SUBSCRIPTIONS_HTTP_POST],
|
&[metrics::SUBSCRIPTIONS_HTTP_POST],
|
||||||
@@ -750,8 +748,7 @@ async fn poll_beacon_attesters<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
beacon_node
|
beacon_node
|
||||||
.post_validator_beacon_committee_subscriptions(subscriptions_ref)
|
.post_validator_beacon_committee_subscriptions(subscriptions_ref)
|
||||||
.await
|
.await
|
||||||
},
|
})
|
||||||
)
|
|
||||||
.await;
|
.await;
|
||||||
if subscription_result.as_ref().is_ok() {
|
if subscription_result.as_ref().is_ok() {
|
||||||
debug!(
|
debug!(
|
||||||
|
|||||||
Reference in New Issue
Block a user