Remove connect loop

This commit is contained in:
Henry de Valence 2019-10-26 16:36:40 -07:00 committed by Deirdre Connolly
parent dadc13feb4
commit f588f5d368
1 changed files with 2 additions and 4 deletions

View File

@ -111,10 +111,8 @@ impl ConnectCmd {
tail.extend_from_slice(&addrs[addrs.len() - 5..]);
info!(addrs.first = ?head, addrs.last = ?tail);
loop {
// empty loop ensures we don't exit the application,
// and this is throwaway code
}
let eternity = tokio::future::pending::<()>();
eternity.await;
Ok(())
}