Преглед изворни кода

drk: Detach from the fun

1000x speedup.
x пре 8 месеци
родитељ
комит
a61fc4fe33
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      bin/drk/src/cli_util.rs

+ 1 - 2
bin/drk/src/cli_util.rs

@@ -135,8 +135,7 @@ pub async fn kaching() {
 
 
     let Ok(source) = Decoder::new(cursor) else { return };
     let Ok(source) = Decoder::new(cursor) else { return };
     sink.append(source);
     sink.append(source);
-
-    sink.sleep_until_end();
+    sink.detach();
 }
 }
 
 
 /// Auxiliary function to generate provided shell completions.
 /// Auxiliary function to generate provided shell completions.