From a9e77e846f215aa107fa04453c4a9a7fb627f8a2 Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Thu, 16 Nov 2023 21:18:19 +0100 Subject: [PATCH] cleanup --- src/middlewares/mod.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/middlewares/mod.rs b/src/middlewares/mod.rs index 93d172f..0f22205 100644 --- a/src/middlewares/mod.rs +++ b/src/middlewares/mod.rs @@ -20,11 +20,11 @@ pub mod factory; pub mod methods; pub mod subscriptions; +#[derive(Debug)] /// Represents a RPC request made to a middleware function. pub struct CallRequest { pub method: String, pub params: Vec, - pub tracer: Option, } impl CallRequest { @@ -32,23 +32,8 @@ impl CallRequest { Self { method: method.to_string(), params, - tracer: None, } } - - pub fn with_tracer(mut self, tracer: opentelemetry::global::BoxedTracer) -> Self { - self.tracer = Some(tracer); - self - } -} - -impl Debug for CallRequest { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - f.debug_struct("CallRequest") - .field("method", &self.method) - .field("params", &self.params) - .finish() - } } /// Alias for the result of a method request.