diff --git a/crates/llm_gateway/src/filter_context.rs b/crates/llm_gateway/src/filter_context.rs index 619ea85f..78945fbb 100644 --- a/crates/llm_gateway/src/filter_context.rs +++ b/crates/llm_gateway/src/filter_context.rs @@ -58,31 +58,16 @@ pub struct FilterContext { // callouts stores token_id to request mapping that we use during #on_http_call_response to match the response to the request. callouts: RefCell>, llm_providers: Option>, - // traces: Rc>>, traces_queue: Arc>>, - // trace_sender: Rc>, - // receiver: Receiver, } impl FilterContext { pub fn new() -> FilterContext { - // let (sender, receiver) = channel::(); - // thread::spawn(move || { - // while let Ok(trace) = receiver.recv() { - // debug!("received trace: {:?}", trace); - // } - // }); - // let queue: Arc>> = Arc::new(Mutex::new(Vec::new())); - // queue.lock().unwrap().push("foo".to_string()); - FilterContext { callouts: RefCell::new(HashMap::new()), metrics: Rc::new(WasmMetrics::new()), llm_providers: None, - // traces: Rc::new(RefCell::new(VecDeque::new())), traces_queue: Arc::new(Mutex::new(VecDeque::new())), - // trace_sender: Rc::new(sender), - // receiver, } } }