diff --git a/commons/zenoh-sync/src/event.rs b/commons/zenoh-sync/src/event.rs index e6ec70c1a3..f1aa5b5b69 100644 --- a/commons/zenoh-sync/src/event.rs +++ b/commons/zenoh-sync/src/event.rs @@ -1,5 +1,5 @@ // -// Copyright (c) 2023 ZettaScale Technology +// Copyright (c) 2024 ZettaScale Technology // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License 2.0 which is available at diff --git a/io/zenoh-transport/src/common/pipeline.rs b/io/zenoh-transport/src/common/pipeline.rs index 6dc2fe9f23..60ea3b215d 100644 --- a/io/zenoh-transport/src/common/pipeline.rs +++ b/io/zenoh-transport/src/common/pipeline.rs @@ -695,7 +695,6 @@ impl TransmissionPipelineConsumer { // While trying to pull from the queue, the stage_in `lock()` will most likely taken, leading to // a spinning behaviour while attempting to take the lock. Yield the current task to avoid // spinning the current task indefinitely. - // std::thread::yield_now(); tokio::task::yield_now().await; // Wait for the backoff to expire or for a new message