diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-04-09 00:34:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 18:34:15 -0400 |
commit | 70af8128767f2fc5a9c59107d3b5ddc00531db55 (patch) | |
tree | 48513959f16273eab2c4b743d61042b00a72deb8 /cli/tokio_util.rs | |
parent | b30ac9c5cf58c34ed71d2f470cdbcd86a6096987 (diff) |
feat: native HTTP bindings (#9935)
Co-authered-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authered-by: Ben Noordhuis <info@bnoordhuis.nl>
Co-authered-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/tokio_util.rs')
-rw-r--r-- | cli/tokio_util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tokio_util.rs b/cli/tokio_util.rs index 5ee45325d..695b94802 100644 --- a/cli/tokio_util.rs +++ b/cli/tokio_util.rs @@ -20,5 +20,6 @@ where F: std::future::Future<Output = R>, { let rt = create_basic_runtime(); - rt.block_on(future) + let local = tokio::task::LocalSet::new(); + local.block_on(&rt, future) } |