mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
remove tracing::intrument annotations (#3197)
* remove tracing::intrument annotations * remove unused param and leftover * more leftovers
This commit is contained in:
@@ -258,7 +258,6 @@ impl State {
|
||||
/// or the relay-parent isn't in the active-leaves set, we ignore the message
|
||||
/// as it must be invalid in that case - although this indicates a logic error
|
||||
/// elsewhere in the node.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, runtime, state, pov), fields(subsystem = LOG_TARGET))]
|
||||
async fn distribute_collation(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
runtime: &mut RuntimeInfo,
|
||||
@@ -357,7 +356,6 @@ async fn distribute_collation(
|
||||
|
||||
/// Get the Id of the Core that is assigned to the para being collated on if any
|
||||
/// and the total number of cores.
|
||||
#[tracing::instrument(level = "trace", skip(ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn determine_core(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
para_id: ParaId,
|
||||
@@ -387,7 +385,6 @@ struct GroupValidators {
|
||||
/// Figure out current and next group of validators assigned to the para being collated on.
|
||||
///
|
||||
/// Returns [`ValidatorId`]'s of current and next group as determined based on the `relay_parent`.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, runtime), fields(subsystem = LOG_TARGET))]
|
||||
async fn determine_our_validators(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
runtime: &mut RuntimeInfo,
|
||||
@@ -424,7 +421,6 @@ async fn determine_our_validators(
|
||||
}
|
||||
|
||||
/// Issue a `Declare` collation message to the given `peer`.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn declare(
|
||||
ctx: &mut impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
state: &mut State,
|
||||
@@ -450,7 +446,6 @@ async fn declare(
|
||||
|
||||
/// Issue a connection request to a set of validators and
|
||||
/// revoke the previous connection request.
|
||||
#[tracing::instrument(level = "trace", skip(ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn connect_to_validators(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
validator_ids: Vec<AuthorityDiscoveryId>,
|
||||
@@ -467,7 +462,6 @@ async fn connect_to_validators(
|
||||
///
|
||||
/// This will only advertise a collation if there exists one for the given `relay_parent` and the given `peer` is
|
||||
/// set as validator for our para at the given `relay_parent`.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn advertise_collation(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
state: &mut State,
|
||||
@@ -528,7 +522,6 @@ async fn advertise_collation(
|
||||
}
|
||||
|
||||
/// The main incoming message dispatching switch.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, runtime, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn process_msg(
|
||||
ctx: &mut impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
runtime: &mut RuntimeInfo,
|
||||
@@ -635,7 +628,6 @@ async fn process_msg(
|
||||
}
|
||||
|
||||
/// Issue a response to a previously requested collation.
|
||||
#[tracing::instrument(level = "trace", skip(state, pov), fields(subsystem = LOG_TARGET))]
|
||||
async fn send_collation(
|
||||
state: &mut State,
|
||||
request: IncomingRequest<CollationFetchingRequest>,
|
||||
@@ -652,7 +644,6 @@ async fn send_collation(
|
||||
}
|
||||
|
||||
/// A networking messages switch.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, runtime, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_incoming_peer_message(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
runtime: &mut RuntimeInfo,
|
||||
@@ -724,7 +715,6 @@ async fn handle_incoming_peer_message(
|
||||
}
|
||||
|
||||
/// Our view has changed.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_peer_view_change(
|
||||
ctx: &mut impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
state: &mut State,
|
||||
@@ -743,7 +733,6 @@ async fn handle_peer_view_change(
|
||||
}
|
||||
|
||||
/// Bridge messages switch.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, runtime, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_network_msg(
|
||||
ctx: &mut impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
runtime: &mut RuntimeInfo,
|
||||
@@ -809,7 +798,6 @@ async fn handle_network_msg(
|
||||
}
|
||||
|
||||
/// Handles our view changes.
|
||||
#[tracing::instrument(level = "trace", skip(state), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_our_view_change(
|
||||
state: &mut State,
|
||||
view: OurView,
|
||||
@@ -851,7 +839,6 @@ async fn handle_our_view_change(
|
||||
}
|
||||
|
||||
/// The collator protocol collator side main loop.
|
||||
#[tracing::instrument(skip(ctx, collator_pair, metrics), fields(subsystem = LOG_TARGET))]
|
||||
pub(crate) async fn run(
|
||||
mut ctx: impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
local_peer_id: PeerId,
|
||||
|
||||
@@ -90,7 +90,6 @@ impl CollatorProtocolSubsystem {
|
||||
}
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self, ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn run<Context>(self, ctx: Context) -> Result<()>
|
||||
where
|
||||
Context: SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
@@ -130,7 +129,6 @@ where
|
||||
}
|
||||
|
||||
/// Modify the reputation of a peer based on its behavior.
|
||||
#[tracing::instrument(level = "trace", skip(ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn modify_reputation<Context>(ctx: &mut Context, peer: PeerId, rep: Rep)
|
||||
where
|
||||
Context: SubsystemContext,
|
||||
|
||||
@@ -513,7 +513,6 @@ async fn disconnect_peer(ctx: &mut impl SubsystemContext, peer_id: PeerId) {
|
||||
}
|
||||
|
||||
/// Another subsystem has requested to fetch collations on a particular leaf for some para.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state, tx, pc), fields(subsystem = LOG_TARGET))]
|
||||
async fn fetch_collation<Context>(
|
||||
ctx: &mut Context,
|
||||
state: &mut State,
|
||||
@@ -530,7 +529,6 @@ where
|
||||
}
|
||||
|
||||
/// Report a collator for some malicious actions.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, peer_data), fields(subsystem = LOG_TARGET))]
|
||||
async fn report_collator<Context>(
|
||||
ctx: &mut Context,
|
||||
peer_data: &HashMap<PeerId, PeerData>,
|
||||
@@ -545,7 +543,6 @@ where
|
||||
}
|
||||
|
||||
/// Some other subsystem has reported a collator as a good one, bump reputation.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, peer_data), fields(subsystem = LOG_TARGET))]
|
||||
async fn note_good_collation<Context>(
|
||||
ctx: &mut Context,
|
||||
peer_data: &HashMap<PeerId, PeerData>,
|
||||
@@ -560,7 +557,6 @@ where
|
||||
}
|
||||
|
||||
/// Notify a collator that its collation got seconded.
|
||||
#[tracing::instrument(level = "trace", skip(ctx), fields(subsystem = LOG_TARGET))]
|
||||
async fn notify_collation_seconded(
|
||||
ctx: &mut impl SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
peer_id: PeerId,
|
||||
@@ -581,7 +577,6 @@ async fn notify_collation_seconded(
|
||||
/// A peer's view has changed. A number of things should be done:
|
||||
/// - Ongoing collation requests have to be cancelled.
|
||||
/// - Advertisements by this peer that are no longer relevant have to be removed.
|
||||
#[tracing::instrument(level = "trace", skip(state), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_peer_view_change(
|
||||
state: &mut State,
|
||||
peer_id: PeerId,
|
||||
@@ -602,7 +597,6 @@ async fn handle_peer_view_change(
|
||||
/// - Check if the requested collation is in our view.
|
||||
/// - Update PerRequest records with the `result` field if necessary.
|
||||
/// And as such invocations of this function may rely on that.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state, result), fields(subsystem = LOG_TARGET))]
|
||||
async fn request_collation<Context>(
|
||||
ctx: &mut Context,
|
||||
state: &mut State,
|
||||
@@ -671,7 +665,6 @@ where
|
||||
}
|
||||
|
||||
/// Networking message has been received.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn process_incoming_peer_message<Context>(
|
||||
ctx: &mut Context,
|
||||
state: &mut State,
|
||||
@@ -806,7 +799,6 @@ where
|
||||
/// A leaf has become inactive so we want to
|
||||
/// - Cancel all ongoing collation requests that are on top of that leaf.
|
||||
/// - Remove all stored collations relevant to that leaf.
|
||||
#[tracing::instrument(level = "trace", skip(state), fields(subsystem = LOG_TARGET))]
|
||||
async fn remove_relay_parent(
|
||||
state: &mut State,
|
||||
relay_parent: Hash,
|
||||
@@ -822,7 +814,6 @@ async fn remove_relay_parent(
|
||||
}
|
||||
|
||||
/// Our view has changed.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state, keystore), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_our_view_change(
|
||||
ctx: &mut impl SubsystemContext,
|
||||
state: &mut State,
|
||||
@@ -874,7 +865,6 @@ async fn handle_our_view_change(
|
||||
}
|
||||
|
||||
/// Bridge event switch.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, state, keystore), fields(subsystem = LOG_TARGET))]
|
||||
async fn handle_network_msg<Context>(
|
||||
ctx: &mut Context,
|
||||
state: &mut State,
|
||||
@@ -910,7 +900,6 @@ where
|
||||
}
|
||||
|
||||
/// The main message receiver switch.
|
||||
#[tracing::instrument(level = "trace", skip(ctx, keystore, state), fields(subsystem = LOG_TARGET))]
|
||||
async fn process_msg<Context>(
|
||||
ctx: &mut Context,
|
||||
keystore: &SyncCryptoStorePtr,
|
||||
@@ -1003,7 +992,6 @@ async fn wait_until_next_check(last_poll: Instant) -> Instant {
|
||||
}
|
||||
|
||||
/// The main run loop.
|
||||
#[tracing::instrument(skip(ctx, keystore, metrics), fields(subsystem = LOG_TARGET))]
|
||||
pub(crate) async fn run<Context>(
|
||||
mut ctx: Context,
|
||||
keystore: SyncCryptoStorePtr,
|
||||
|
||||
Reference in New Issue
Block a user