]> git.proxmox.com Git - proxmox-backup.git/commit
runtime: remove IN_TOKIO thread local variable
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 13 Feb 2020 07:56:37 +0000 (08:56 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 13 Feb 2020 07:56:38 +0000 (08:56 +0100)
commit1283d58ca9efb02db9d3908d3374b2ac17a6aee5
tree31124b55b4811fbe36785e54297aad0797e32183
parent3243f93ce74cb4247f919e8ab31cb13a4c49687a
runtime: remove IN_TOKIO thread local variable

tokio now has Handle::try_current() allowing us to
generally check for a tokio runtime even if spawned by
someone else

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/runtime.rs