Skip to content

Commit abcff8a

Browse files
edward-shenmeta-codesync[bot]
authored andcommitted
Replace Duration::from_secs(60) to Duration::from_mins(1) (#297)
Summary: Pull Request resolved: #297 X-link: meta-pytorch/monarch#2066 Rust 1.91 introduced `Duration::from_mins`. This diff replaces some instances of `Duration::from_secs` with the corresponding `Duration::from_mins`. Reviewed By: dtolnay Differential Revision: D88434166 fbshipit-source-id: e5e86763e0f4cfa6da502d32f1f98ffc198399ed
1 parent 024f850 commit abcff8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub async fn connect_once(addr: String, connect_timeout: Duration) -> Result<Cha
1717
let conn = Endpoint::new(addr)?
1818
.connect_timeout(connect_timeout)
1919
// Enable HTTP2 keep alives
20-
.http2_keep_alive_interval(Duration::from_secs(60))
20+
.http2_keep_alive_interval(Duration::from_mins(1))
2121
// Time taken for server to respond. 20s is default for GRPC.
2222
.keep_alive_timeout(Duration::from_secs(20))
2323
// Enable alive for idle connections.

0 commit comments

Comments
 (0)