Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Jan 4, 2018
1 parent 0523a74 commit b8c24fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ hex = "0.3.1"
deflate = {version="0.7.17", features=["gzip"]}
capturing-glob = "0.1.0"

[workspace]

[dependencies.indexed_log]
path = "./indexed_log"

Expand Down
7 changes: 4 additions & 3 deletions src/daemon/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use futures::{Future, Stream, Sink, Async, AsyncSink};
use futures::future::{FutureResult, ok};
use futures::sync::mpsc::UnboundedReceiver;
use futures::sync::oneshot;
use rand::{thread_rng, Rng, sample};
use rand::{thread_rng, Rng};
use rand::seq::sample_iter;
use tokio_core::reactor::Timeout;
use tokio_core::net::{TcpStream, TcpStreamNew};
use valuable_futures::{Supply, StateMachine, Async as A, Async as VAsync};
Expand Down Expand Up @@ -468,11 +469,11 @@ impl Prefetch {
None
};
// Issue a new connection
let addr = sample(&mut thread_rng(), peers.iter()
let addr = sample_iter(&mut thread_rng(), peers.iter()
.filter_map(|id| get_addr(&ctx.shared, id))
.filter(|&a| !self.blacklist.is_failing(a))
.filter(|a| cur.map(|s| !s.contains(a)).unwrap_or(true)),
1);
1).unwrap_or_else(|v| v);
if let Some(addr) = addr.into_iter().next() {
self.fetching.push_back((FetchContext {
started: Instant::now(),
Expand Down
2 changes: 1 addition & 1 deletion verwalter_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = ["Paul Colomiets <paul@colomiets.name>"]

[dependencies]
quire = "0.3.1"
log = "0.3.2"
log = "0.4.1"
serde = "1.0.0"
serde_derive = "1.0.0"
serde_json = "1.0.0"
Expand Down

0 comments on commit b8c24fa

Please sign in to comment.