From 2eb04f0f2980ef412fd6fc3a267db69923a049e5 Mon Sep 17 00:00:00 2001 From: koushiro Date: Mon, 17 Nov 2025 21:49:10 +0800 Subject: [PATCH] chore(layers/timeout)!: remove deprecated `with_speed` method --- core/src/layers/timeout.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/src/layers/timeout.rs b/core/src/layers/timeout.rs index 8b6a78e3307c..5240e8f0cf48 100644 --- a/core/src/layers/timeout.rs +++ b/core/src/layers/timeout.rs @@ -147,21 +147,6 @@ impl TimeoutLayer { self.io_timeout = timeout; self } - - /// Set speed for TimeoutLayer with given value. - /// - /// # Notes - /// - /// The speed should be the lower bound of the IO speed. Set this value too - /// large could result in all write operations failing. - /// - /// # Panics - /// - /// This function will panic if speed is 0. - #[deprecated(note = "with speed is not supported anymore, please use with_io_timeout instead")] - pub fn with_speed(self, _: u64) -> Self { - self - } } impl Layer for TimeoutLayer {