fix "multiple" attribute (#4323)
* fix "multiple" attribute * change timeout in spin future
This commit is contained in:
1 parent
f54e771247
commit
dcf46ce81a
5 files changed
+16
-11
No files matched your search
@@ -62,14 +62,16 @@ impl Workspace {
|
||||
});
|
||||
|
||||
let spin_future = async move {
|
||||
tokio::time::sleep(Duration::from_millis(500)).await;
|
||||
tokio::time::sleep(Duration::from_millis(1000)).await;
|
||||
println!("{GLOW_STYLE}warning{GLOW_STYLE:#}: Waiting for cargo-metadata...");
|
||||
tokio::time::sleep(Duration::from_millis(2000)).await;
|
||||
for x in 1..=5 {
|
||||
for x in 1..=100 {
|
||||
tokio::time::sleep(Duration::from_millis(2000)).await;
|
||||
println!(
|
||||
"{GLOW_STYLE}warning{GLOW_STYLE:#}: ({x}/5) Taking a while, maybe your internet is down?"
|
||||
);
|
||||
println!("{GLOW_STYLE}warning{GLOW_STYLE:#}: (Try {x}) Taking a while...");
|
||||
|
||||
if x % 10 == 0 {
|
||||
println!("{GLOW_STYLE}warning{GLOW_STYLE:#}: maybe check your network connection or build lock?");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user