Unverified Commit 9164205e authored by Bernhard Schuster's avatar Bernhard Schuster Committed by GitHub
Browse files

chore: avoid glob imports (#2722)

parent 8621ed28
Pipeline #130814 failed with stages
in 28 minutes and 36 seconds
......@@ -14,7 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
use super::*;
use super::{
BridgeStorage,
RawOrigin,
HeadersByNumber,
Instance,
Config,
};
use crate::test_utils::{
build_custom_header, build_genesis_header, insert_header, validator_utils::*, validators_change_receipt,
......
......@@ -42,7 +42,7 @@ use std::fmt::Debug;
use std::{collections::HashSet, time::Duration};
pub mod consts {
use super::*;
use super::Duration;
/// Interval at which we check new Ethereum blocks.
pub const ETHEREUM_TICK_INTERVAL: Duration = Duration::from_secs(5);
......
......@@ -16,7 +16,13 @@
//! Metered variant of bounded mpsc channels to be able to extract metrics.
use super::*;
use futures::{channel::mpsc, task::Poll, task::Context, sink::SinkExt, stream::Stream};
use std::result;
use std::pin::Pin;
use super::Meter;
/// Create a wrapped `mpsc::channel` pair of `MeteredSender` and `MeteredReceiver`.
pub fn channel<T>(capacity: usize, name: &'static str) -> (MeteredSender<T>, MeteredReceiver<T>) {
......
......@@ -17,12 +17,7 @@
//! Metered variant of mpsc channels to be able to extract metrics.
use std::sync::atomic::{AtomicUsize, Ordering};
use futures::{channel::mpsc, task::Poll, task::Context, sink::SinkExt, stream::Stream};
use std::result;
use std::sync::Arc;
use std::pin::Pin;
use derive_more::{Add, Display};
......
......@@ -16,7 +16,13 @@
//! Metered variant of unbounded mpsc channels to be able to extract metrics.
use super::*;
use futures::{channel::mpsc, task::Poll, task::Context, sink::SinkExt, stream::Stream};
use std::result;
use std::pin::Pin;
use super::Meter;
/// Create a wrapped `mpsc::channel` pair of `MeteredSender` and `MeteredReceiver`.
pub fn unbounded<T>(name: &'static str) -> (UnboundedMeteredSender<T>, UnboundedMeteredReceiver<T>) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment