diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-07-08 15:38:42 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-07-13 15:57:37 +0200 |
| commit | e52236b751a0d4a3ae9de9b6ba5569ef3faff495 (patch) | |
| tree | 0db878501636ebdd4cecb9732d440852d2cbd5e7 /talpid-openvpn-plugin/src/processing.rs | |
| parent | 66a994935c165ef7899ca31c1c1714471bb26ca8 (diff) | |
| download | mullvadvpn-e52236b751a0d4a3ae9de9b6ba5569ef3faff495.tar.xz mullvadvpn-e52236b751a0d4a3ae9de9b6ba5569ef3faff495.zip | |
Fix tokio runtime builders
Diffstat (limited to 'talpid-openvpn-plugin/src/processing.rs')
| -rw-r--r-- | talpid-openvpn-plugin/src/processing.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/talpid-openvpn-plugin/src/processing.rs b/talpid-openvpn-plugin/src/processing.rs index e6d2a77349..2e715707b7 100644 --- a/talpid-openvpn-plugin/src/processing.rs +++ b/talpid-openvpn-plugin/src/processing.rs @@ -25,10 +25,7 @@ pub struct EventProcessor { impl EventProcessor { pub fn new(arguments: Arguments) -> Result<EventProcessor, Error> { log::trace!("Creating EventProcessor"); - let mut runtime = runtime::Builder::new() - .basic_scheduler() - .core_threads(1) - .max_threads(1) + let runtime = runtime::Builder::new_current_thread() .enable_all() .build() .map_err(Error::CreateRuntime)?; |
