mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 04:41:02 +00:00
txpool: LOG_TARGET const added (#13180)
* txpool: LOG_TARGET const added part of: #12873 * LOG_TARGET added to tests mod * txpool::api for api * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * ".git/.scripts/commands/fmt/fmt.sh" Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
cce6d406bf
commit
57b1de3f47
@@ -18,6 +18,7 @@
|
||||
|
||||
//! Chain api required for the transaction pool.
|
||||
|
||||
use crate::LOG_TARGET;
|
||||
use codec::Encode;
|
||||
use futures::{
|
||||
channel::{mpsc, oneshot},
|
||||
@@ -85,7 +86,7 @@ impl<Client, Block> FullChainApi<Client, Block> {
|
||||
let metrics = prometheus.map(ApiMetrics::register).and_then(|r| match r {
|
||||
Err(err) => {
|
||||
log::warn!(
|
||||
target: "txpool",
|
||||
target: LOG_TARGET,
|
||||
"Failed to register transaction pool api prometheus metrics: {:?}",
|
||||
err,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user