aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-06-07 02:11:19 +0200
committerTeddy Wing2021-06-07 02:11:19 +0200
commit23c3f885c34c15084b06b15a4a8b37f4013d39d9 (patch)
treef6d921123f6ca279a9d2f284f296250086604600 /src
parentf98dad7a3a19c9f731fd87c8b3c0e14e976d76d6 (diff)
downloadreflectub-23c3f885c34c15084b06b15a4a8b37f4013d39d9.tar.bz2
main: Not multi-threaded
Looks like the work doesn't happen on multiple threads. All of the tasks printed the same thread ID. Need to do some more work to get this working properly, it seems.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 0d4938d..4812223 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -123,6 +123,7 @@ fn run() -> anyhow::Result<()> {
let join = tokio::spawn(async move {
let mut db = db.lock().await;
+ dbg!("processing on", std::thread::current().id());
process_repo(
&repo,
@@ -165,6 +166,7 @@ async fn process_repo(
base_cgitrc: Option<PathBuf>,
max_repo_size_bytes: Option<u64>,
) -> anyhow::Result<()> {
+ return anyhow::bail!("test");
if let Some(max_repo_size_bytes) = max_repo_size_bytes {
if is_repo_oversize(repo.size, max_repo_size_bytes) {
return Ok(());