We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
async
1 parent 86f990d commit 13881baCopy full SHA for 13881ba
bitbox-bridge/src/web.rs
@@ -155,11 +155,7 @@ async fn ws_upgrade(
155
}))
156
}
157
158
-pub fn create(
159
- usb_devices: UsbDevices,
160
- notify_tx: mpsc::Sender<()>,
161
- addr: SocketAddr,
162
-) -> impl std::future::Future {
+pub async fn create(usb_devices: UsbDevices, notify_tx: mpsc::Sender<()>, addr: SocketAddr) {
163
// create a warp filter out of "usb_devices" to pass it into our handlers later
164
let usb_devices = warp::any().map(move || (usb_devices.clone(), notify_tx.clone()));
165
@@ -322,5 +318,5 @@ pub fn create(
322
318
323
319
324
320
});
325
- warp::serve(routes).run(addr)
321
+ warp::serve(routes).run(addr).await
326
0 commit comments