diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-10 12:53:44 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-10 12:53:44 -0400 |
commit | 805b32706c1e68f61048c19da3c0710855ce68ad (patch) | |
tree | 7e16cedb96d6af42c0e19f68a9fff3b7687735fc /src/cmd/watch.rs | |
parent | da29d6cbd7953c207b83f7f555987b3a480c024d (diff) | |
download | teleterm-805b32706c1e68f61048c19da3c0710855ce68ad.tar.gz teleterm-805b32706c1e68f61048c19da3c0710855ce68ad.zip |
bump heartbeat interval to 30s
also stop trying to make it configurable, since there's really no need
for that
Diffstat (limited to 'src/cmd/watch.rs')
-rw-r--r-- | src/cmd/watch.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/cmd/watch.rs b/src/cmd/watch.rs index 94891e6..58b08e4 100644 --- a/src/cmd/watch.rs +++ b/src/cmd/watch.rs @@ -74,7 +74,6 @@ fn run_impl(username: &str, address: &str) -> Result<()> { futures::task::current(), &address, &username, - std::time::Duration::from_secs(5), )) .flatten() .map_err(|e| { @@ -163,7 +162,6 @@ impl State { struct WatchSession { address: String, username: String, - heartbeat_duration: std::time::Duration, key_reader: crate::key_reader::KeyReader, list_client: crate::client::Client, @@ -177,19 +175,13 @@ impl WatchSession { task: futures::task::Task, address: &str, username: &str, - heartbeat_duration: std::time::Duration, ) -> Result<Self> { - let list_client = crate::client::Client::list( - address, - username, - heartbeat_duration, - 4_194_304, - ); + let list_client = + crate::client::Client::list(address, username, 4_194_304); Ok(Self { address: address.to_string(), username: username.to_string(), - heartbeat_duration, key_reader: crate::key_reader::KeyReader::new(task) .context(KeyReader)?, @@ -295,7 +287,6 @@ impl WatchSession { let client = crate::client::Client::watch( &self.address, &self.username, - self.heartbeat_duration, 4_194_304, id, ); |