Fix bincode-bytes issue.

This commit is contained in:
c0gent 2018-10-04 07:08:29 -07:00
parent ebeb99b6fe
commit 83dba5f6ac
No known key found for this signature in database
GPG Key ID: 9CC25E71A743E892
2 changed files with 3 additions and 3 deletions

View File

@ -38,10 +38,10 @@ serde_bytes = "*"
serde_derive = "1"
signifix = "*"
futures = "0.1"
tokio = "0.1.7"
tokio = "~0.1.11"
tokio-codec = "*"
tokio-io = "*"
bincode = "0.8"
bincode = "1"
tokio-serde = "*"
tokio-serde-bincode = "*"
bytes = "*"

View File

@ -357,7 +357,7 @@ impl<T: Contribution> Sink for WireMessages<T> {
//
// Original: `bincode::serialize(&item)`
//
match bincode::serialize(&item, bincode::Bounded(1 << 20)) {
match bincode::serialize(&item) {
Ok(s) => serialized.extend_from_slice(&s),
Err(err) => return Err(Error::Io(io::Error::new(io::ErrorKind::Other, err))),
}