File tree Expand file tree Collapse file tree
libsql-server/src/http/user Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ use std::convert::Infallible;
2020use std:: pin:: Pin ;
2121use std:: time:: Duration ;
2222use tokio_stream:: wrappers:: errors:: BroadcastStreamRecvError ;
23- use tracing:: { debug, warn} ;
2423
2524use super :: db_factory:: namespace_from_headers;
2625use super :: AppState ;
@@ -142,29 +141,16 @@ async fn listen_stream(
142141 let _sub = Subscription :: new( store. clone( ) , namespace. clone( ) , table. clone( ) ) ;
143142 let mut stream = store. subscribe( namespace. clone( ) , table. clone( ) ) ;
144143
145- while let Some ( item) = stream. next( ) . await {
144+ while let Some ( item) = stream. next( ) . await {
146145 match item {
147- Ok ( msg) if filter_actions( & msg, & actions) => {
146+ Ok ( msg) => if filter_actions( & msg, & actions) {
148147 LISTEN_EVENTS_SENT . increment( 1 ) ;
149148 yield AggregatorEvent :: Changes ( msg) ;
150149 } ,
151150 Err ( BroadcastStreamRecvError :: Lagged ( n) ) => {
152151 LISTEN_EVENTS_DROPPED . increment( n as u64 ) ;
153- warn!(
154- namespace = %namespace,
155- table = %table,
156- dropped_events = n,
157- "Lagged event in listen stream"
158- ) ;
159152 yield AggregatorEvent :: Error ( LAGGED_MSG ) ;
160153 } ,
161- _ => {
162- debug!(
163- namespace = %namespace,
164- table = %table,
165- "Filtered out message in listen stream"
166- ) ;
167- }
168154 }
169155 }
170156 }
You can’t perform that action at this time.
0 commit comments