mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
more resilient subsystems (#1908)
* backing: extract log target * bitfield-signing: extract log target * utils: fix a typo * provisioner: extract log target * candidate selection: remove unused error variant * bitfield-distribution: change the return type of run * pov-distribution: extract log target * collator-protocol: simplify runtime request * collation-generation: do not exit early on error * collation-generation: do not exit on double init * collator-protocol: do not exit on errors and rename LOG_TARGET * collator-protocol: a workaround for ununused imports warning * Update node/network/bitfield-distribution/src/lib.rs * collation-generation: elevate warn! to error! * collator-protocol: fix imports * post merge fix * fix compilation
This commit is contained in:
@@ -129,8 +129,7 @@ impl CollationGenerationSubsystem {
|
||||
if let Err(err) =
|
||||
handle_new_activations(config.clone(), &activated, ctx, metrics, sender).await
|
||||
{
|
||||
log::warn!(target: LOG_TARGET, "failed to handle new activations: {:?}", err);
|
||||
return true;
|
||||
log::warn!(target: LOG_TARGET, "failed to handle new activations: {}", err);
|
||||
};
|
||||
}
|
||||
false
|
||||
@@ -140,12 +139,11 @@ impl CollationGenerationSubsystem {
|
||||
msg: CollationGenerationMessage::Initialize(config),
|
||||
}) => {
|
||||
if self.config.is_some() {
|
||||
log::warn!(target: LOG_TARGET, "double initialization");
|
||||
true
|
||||
log::error!(target: LOG_TARGET, "double initialization");
|
||||
} else {
|
||||
self.config = Some(Arc::new(config));
|
||||
false
|
||||
}
|
||||
false
|
||||
}
|
||||
Ok(Signal(BlockFinalized(_))) => false,
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user