Skip to content

Commit 8b3d867

Browse files
committed
fix compile errors
1 parent dc27a56 commit 8b3d867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node-graph/graphene-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
111111
std::thread::spawn(move || {
112112
loop {
113113
std::thread::sleep(std::time::Duration::from_nanos(10));
114-
device.poll(wgpu::Maintain::Poll);
114+
device.poll(wgpu::PollType::Poll).unwrap();
115115
}
116116
});
117117
let executor = create_executor(proto_graph)?;
@@ -123,7 +123,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
123123
println!("{:?}", result);
124124
break;
125125
}
126-
std::thread::sleep(std::time::Duration::from_millis(16));
126+
tokio::time::sleep(std::time::Duration::from_millis(16)).await;
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)