1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-20 10:30:02 +00:00

update doc string

This commit is contained in:
Nikolay Kim 2018-05-08 05:54:06 -07:00
parent 8cda362866
commit ecda97aadd

View file

@ -347,6 +347,7 @@ impl ClientConnector {
/// Keep-alive period is the period between connection usage. If
/// the delay between repeated usages of the same connection
/// exceeds this period, the connection is closed.
/// Default keep-alive period is 15 seconds.
pub fn conn_keep_alive(mut self, dur: Duration) -> Self {
self.conn_keep_alive = dur;
self
@ -356,6 +357,7 @@ impl ClientConnector {
///
/// Connection lifetime is max lifetime of any opened connection
/// until it is closed regardless of keep-alive period.
/// Default lifetime period is 75 seconds.
pub fn conn_lifetime(mut self, dur: Duration) -> Self {
self.conn_lifetime = dur;
self