Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 22c4cf0

Browse files
authored
activate work unit submission (#370)
1 parent 18f8c0d commit 22c4cf0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

crates/dev-utils/examples/submit_work.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async fn main() -> Result<()> {
5353

5454
let call = contracts
5555
.compute_pool
56-
.build_work_submission_call(pool_id, node, work_key, U256::from(1))
56+
.build_work_submission_call(pool_id, node, work_key, U256::from(179949060096000.0))
5757
.await
5858
.map_err(|e| eyre::eyre!("Failed to build work submission call: {}", e))?;
5959

crates/worker/src/docker/taskbridge/bridge.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ impl TaskBridge {
148148
}
149149
};
150150

151-
#[allow(clippy::assign_op_pattern)]
152-
let work_units = 1.0;
151+
let mut work_units = 1.0;
153152
if output_flops > 0.0 {
154-
// work_units = output_flops;
153+
work_units = output_flops;
155154
}
156155

157156
tokio::spawn(async move {

0 commit comments

Comments
 (0)