fmt: apply cargo fmt to topology_worker.rs
ci / gates (push) Successful in 5s
ci / frontend (push) Successful in 27s
ci / rust (push) Successful in 4m3s
ci / e2e (push) Skipped
ci / publish (push) Successful in 2m40s

This commit is contained in:
Omar Sobh
2026-07-19 07:02:08 -07:00
parent 2a99bba6c1
commit 68d84bf1ad
+7 -5
View File
@@ -191,9 +191,8 @@ async fn run_job(
// doesn't bind /workspace/repo, so coding agents would spend their // doesn't bind /workspace/repo, so coding agents would spend their
// turns narrating without touching files — a much worse failure // turns narrating without touching files — a much worse failure
// mode than a red run with a clear error. // mode than a red run with a clear error.
let per_topic_url = match try_team_gateway_url(pool, id, WorkspaceId::from(job.workspace_id)) let per_topic_url =
.await match try_team_gateway_url(pool, id, WorkspaceId::from(job.workspace_id)).await {
{
Ok(url) => url, Ok(url) => url,
Err(e) => { Err(e) => {
eprintln!("topology_worker: team gateway resolution failed for run {id}: {e}"); eprintln!("topology_worker: team gateway resolution failed for run {id}: {e}");
@@ -697,8 +696,11 @@ async fn try_team_gateway_url(
} }
Err(e) => return Err(format!("source_research_context({loop_id}): {e}")), Err(e) => return Err(format!("source_research_context({loop_id}): {e}")),
}; };
let source_topic = let source_topic = match cm_db::repo::research_topics::get(
match cm_db::repo::research_topics::get(pool, source_topic_id, workspace_id.as_uuid()) pool,
source_topic_id,
workspace_id.as_uuid(),
)
.await .await
{ {
Ok(Some(t)) => t, Ok(Some(t)) => t,