this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add todo text for unimplemented timeline request handling

+4 -1
+4 -1
server/src/client_communication.rs
··· 293 293 } 294 294 } 295 295 } 296 - Ok(Message::TimelineRequest { by_id }) => todo!(), 296 + Ok(Message::TimelineRequest { by_id }) => todo!("Fetching timeline content not yet implemented."), 297 + // Responding variants are not supposed to ever arrive here. 297 298 Ok(Message::ClientInit { .. }) | 298 299 Ok(Message::Greeting { .. }) | Ok(Message::SerialisationError {..} ) 299 300 | Ok(Message::RegisterPrecheckResponse {..} ) ··· 306 307 => { 307 308 panic!("These messages should never arrive here.") 308 309 } 310 + // This one makes sense. 309 311 Ok(Message::Unknown) => { 310 312 panic!("Unknown message received?") 311 313 } 314 + // And to handle straight up errors: 312 315 Err(e) => { 313 316 error!("Error deserialising message: {:?}", e); 314 317 let _ = stream.send(ws::Message::from("unknown")).await;