2 Commits

Author SHA1 Message Date
Tim
9bd66b7e49 Bump version (#195) 2018-08-13 15:49:17 -07:00
Yechan Bae
0ecc7a80c1 Do not ignore payload size in sync client (#194) 2018-08-12 10:39:20 -07:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tarpc"
version = "0.12.0"
version = "0.12.1"
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
license = "MIT"
documentation = "https://docs.rs/tarpc"

View File

@@ -106,7 +106,7 @@ impl Into<FutureOptions> for (reactor::Handle, Options) {
#[cfg(feature = "tls")]
fn into(self) -> FutureOptions {
let (handle, options) = self;
let mut opts = FutureOptions::default().handle(handle);
let mut opts = FutureOptions::default().max_payload_size(options.max_payload_size).handle(handle);
if let Some(tls_ctx) = options.tls_ctx {
opts = opts.tls(tls_ctx);
}
@@ -115,8 +115,8 @@ impl Into<FutureOptions> for (reactor::Handle, Options) {
#[cfg(not(feature = "tls"))]
fn into(self) -> FutureOptions {
let (handle, _) = self;
FutureOptions::default().handle(handle)
let (handle, options) = self;
FutureOptions::default().max_payload_size(options.max_payload_size).handle(handle)
}
}