Skip to content

Commit c03945b

Browse files
committed
Remove direct dependency of futures-core.
1 parent 8e1cf38 commit c03945b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ keywords = ["etcd", "v3", "api", "client", "async"]
1212
[dependencies]
1313
tonic = "0.1"
1414
prost = "0.6"
15-
tokio = { version = "0.2", features = ["rt-core", "stream", "sync"] }
16-
futures-core = "0.3"
15+
tokio = { version = "0.2", features = ["stream"] }
1716
http = "0.2"
1817

1918
[dev-dependencies]

src/rpc/watch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use crate::rpc::pb::etcdserverpb::{
1111
};
1212
use crate::rpc::pb::mvccpb::Event as PbEvent;
1313
use crate::rpc::{get_prefix, KeyValue, ResponseHeader};
14-
use futures_core::task::{Context, Poll};
15-
use futures_core::Stream;
14+
use std::task::{Context, Poll};
15+
use tokio::stream::Stream;
1616
use tokio::sync::mpsc::{channel, Sender};
1717
use tonic::codegen::Pin;
1818
use tonic::transport::Channel;

0 commit comments

Comments
 (0)