Expand imports
tokio is a heavy dependency. This gives us some visibility into what we're using.
This commit is contained in:
parent
e9b0e3cb9d
commit
2f1fe726f5
|
@ -1,5 +1,5 @@
|
|||
use clap::{crate_version, App, Arg};
|
||||
use log::*;
|
||||
use log::info;
|
||||
use solana_drone::drone::{Drone, DRONE_PORT};
|
||||
use solana_drone::socketaddr;
|
||||
use solana_sdk::signature::read_keypair;
|
||||
|
@ -9,7 +9,7 @@ use std::net::{Ipv4Addr, SocketAddr};
|
|||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use tokio::net::TcpListener;
|
||||
use tokio::prelude::*;
|
||||
use tokio::prelude::{Future, Sink, Stream};
|
||||
use tokio_codec::{BytesCodec, Decoder};
|
||||
|
||||
fn main() -> Result<(), Box<error::Error>> {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
use bincode::{deserialize, serialize};
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use log::*;
|
||||
use log::{debug, info, trace, warn};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use solana_metrics;
|
||||
use solana_metrics::influxdb;
|
||||
|
@ -27,7 +27,7 @@ use std::thread;
|
|||
use std::time::Duration;
|
||||
use tokio;
|
||||
use tokio::net::TcpListener;
|
||||
use tokio::prelude::*;
|
||||
use tokio::prelude::{Future, Read, Sink, Stream, Write};
|
||||
use tokio_codec::{BytesCodec, Decoder};
|
||||
|
||||
#[macro_export]
|
||||
|
|
Loading…
Reference in New Issue