mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 20:07:56 +00:00
remove tracing::intrument annotations (#3197)
* remove tracing::intrument annotations * remove unused param and leftover * more leftovers
This commit is contained in:
@@ -232,7 +232,6 @@ impl PeerRelayParentKnowledge {
|
||||
///
|
||||
/// This returns `true` if this is the first time the peer has become aware of a
|
||||
/// candidate with the given hash.
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn send(&mut self, fingerprint: &(CompactStatement, ValidatorIndex)) -> bool {
|
||||
debug_assert!(
|
||||
self.can_send(fingerprint),
|
||||
@@ -295,7 +294,6 @@ impl PeerRelayParentKnowledge {
|
||||
///
|
||||
/// This returns `Ok(true)` if this is the first time the peer has become aware of a
|
||||
/// candidate with given hash.
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn receive(
|
||||
&mut self,
|
||||
fingerprint: &(CompactStatement, ValidatorIndex),
|
||||
@@ -422,7 +420,6 @@ impl PeerData {
|
||||
///
|
||||
/// This returns `true` if this is the first time the peer has become aware of a
|
||||
/// candidate with the given hash.
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn send(
|
||||
&mut self,
|
||||
relay_parent: &Hash,
|
||||
@@ -466,7 +463,6 @@ impl PeerData {
|
||||
///
|
||||
/// This returns `Ok(true)` if this is the first time the peer has become aware of a
|
||||
/// candidate with given hash.
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn receive(
|
||||
&mut self,
|
||||
relay_parent: &Hash,
|
||||
@@ -664,7 +660,6 @@ impl ActiveHeadData {
|
||||
///
|
||||
/// Any other statements or those that reference a candidate we are not aware of cannot be accepted
|
||||
/// and will return `NotedStatement::NotUseful`.
|
||||
#[tracing::instrument(level = "trace", skip(self), fields(subsystem = LOG_TARGET))]
|
||||
fn note_statement(&mut self, statement: SignedFullStatement) -> NotedStatement {
|
||||
let validator_index = statement.validator_index();
|
||||
let comparator = StoredStatementComparator {
|
||||
@@ -844,7 +839,6 @@ fn check_statement_signature(
|
||||
/// circulates the statement to all peers who have not seen it yet, and
|
||||
/// sends all statements dependent on that statement to peers who could previously not receive
|
||||
/// them but now can.
|
||||
#[tracing::instrument(level = "trace", skip(peers, ctx, active_heads, metrics), fields(subsystem = LOG_TARGET))]
|
||||
async fn circulate_statement_and_dependents(
|
||||
peers: &mut HashMap<PeerId, PeerData>,
|
||||
active_heads: &mut HashMap<Hash, ActiveHeadData>,
|
||||
@@ -945,7 +939,6 @@ fn is_statement_large(statement: &SignedFullStatement) -> bool {
|
||||
|
||||
/// Circulates a statement to all peers who have not seen it yet, and returns
|
||||
/// an iterator over peers who need to have dependent statements sent.
|
||||
#[tracing::instrument(level = "trace", skip(peers, ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn circulate_statement<'a>(
|
||||
peers: &mut HashMap<PeerId, PeerData>,
|
||||
ctx: &mut impl SubsystemContext,
|
||||
@@ -1022,7 +1015,6 @@ async fn circulate_statement<'a>(
|
||||
}
|
||||
|
||||
/// Send all statements about a given candidate hash to a peer.
|
||||
#[tracing::instrument(level = "trace", skip(peer_data, ctx, active_head, metrics), fields(subsystem = LOG_TARGET))]
|
||||
async fn send_statements_about(
|
||||
peer: PeerId,
|
||||
peer_data: &mut PeerData,
|
||||
@@ -1060,7 +1052,6 @@ async fn send_statements_about(
|
||||
}
|
||||
|
||||
/// Send all statements at a given relay-parent to a peer.
|
||||
#[tracing::instrument(level = "trace", skip(peer_data, ctx, active_head, metrics), fields(subsystem = LOG_TARGET))]
|
||||
async fn send_statements(
|
||||
peer: PeerId,
|
||||
peer_data: &mut PeerData,
|
||||
@@ -1450,7 +1441,6 @@ async fn handle_incoming_message<'a>(
|
||||
}
|
||||
|
||||
/// Update a peer's view. Sends all newly unlocked statements based on the previous
|
||||
#[tracing::instrument(level = "trace", skip(peer_data, ctx, active_heads, metrics), fields(subsystem = LOG_TARGET))]
|
||||
async fn update_peer_view_and_send_unlocked(
|
||||
peer: PeerId,
|
||||
peer_data: &mut PeerData,
|
||||
@@ -1560,7 +1550,6 @@ async fn handle_network_update(
|
||||
}
|
||||
|
||||
impl StatementDistribution {
|
||||
#[tracing::instrument(skip(self, ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn run(
|
||||
self,
|
||||
mut ctx: impl SubsystemContext<Message = StatementDistributionMessage>,
|
||||
|
||||
Reference in New Issue
Block a user