Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 1997487

Browse files
cmichibkchr
authored andcommitted
Get rid of wildcard imports (#1916)
* Get rid of wildcard imports * Update core/service/src/lib.rs Co-Authored-By: cmichi <[email protected]> * Update core/client/src/client.rs Co-Authored-By: cmichi <[email protected]> * Import by namespace
1 parent 28ac1b1 commit 1997487

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

core/cli/src/informant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use tokio::runtime::TaskExecutor;
2525
use sysinfo::{get_current_pid, ProcessExt, System, SystemExt};
2626
use network::{SyncState, SyncProvider};
2727
use client::{backend::Backend, BlockchainEvents};
28-
use substrate_telemetry::*;
28+
use substrate_telemetry::{telemetry, SUBSTRATE_INFO};
2929
use log::{info, warn};
3030

3131
use runtime_primitives::generic::BlockId;

core/cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use log::info;
5959
use lazy_static::lazy_static;
6060

6161
use futures::Future;
62-
use substrate_telemetry::TelemetryEndpoints;
62+
use substrate_telemetry::{telemetry, TelemetryEndpoints};
6363

6464
const MAX_NODE_NAME_LENGTH: usize = 32;
6565

core/client/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use crate::in_mem;
6161
use crate::block_builder::{self, api::BlockBuilder as BlockBuilderAPI};
6262
use crate::genesis;
6363
use consensus;
64-
use substrate_telemetry::*;
64+
use substrate_telemetry::{telemetry, SUBSTRATE_INFO};
6565

6666
use log::{info, trace, warn};
6767
use error_chain::bail;

core/consensus/aura/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use srml_aura::{
5252
InherentType as AuraInherent, AuraInherentData,
5353
timestamp::{TimestampInherentData, InherentType as TimestampInherent, InherentError as TIError}
5454
};
55-
use substrate_telemetry::*;
55+
use substrate_telemetry::{telemetry, CONSENSUS_TRACE, CONSENSUS_DEBUG, CONSENSUS_WARN, CONSENSUS_INFO};
5656

5757
use aura_slots::{CheckedHeader, SlotWorker, SlotInfo, SlotCompatible};
5858

core/finality-grandpa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ use runtime_primitives::traits::{
6969
use fg_primitives::GrandpaApi;
7070
use runtime_primitives::generic::BlockId;
7171
use substrate_primitives::{ed25519, H256, Ed25519AuthorityId, Blake2Hasher};
72-
use substrate_telemetry::*;
72+
use substrate_telemetry::{telemetry, CONSENSUS_TRACE, CONSENSUS_DEBUG, CONSENSUS_WARN};
7373

7474
use grandpa::Error as GrandpaError;
7575
use grandpa::{voter, round::State as RoundState, BlockNumberOps, VoterSet};

core/service/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use exit_future::Signal;
4141
pub use tokio::runtime::TaskExecutor;
4242
use substrate_executor::NativeExecutor;
4343
use parity_codec::{Encode, Decode};
44-
use tel::*;
44+
use tel::{telemetry, SUBSTRATE_INFO};
4545

4646
pub use self::error::{ErrorKind, Error};
4747
pub use config::{Configuration, Roles, PruningMode};

0 commit comments

Comments
 (0)