remove debugging println

This commit is contained in:
glyph 2022-11-22 09:44:36 +02:00
parent a08f3adbef
commit 87f75fae94
1 changed files with 0 additions and 7 deletions

View File

@ -8,11 +8,8 @@ use async_std::stream::Stream;
pub use kuska_ssb::api::dto::TanglesThread; pub use kuska_ssb::api::dto::TanglesThread;
use crate::{error::GolgiError, messages::SsbMessageKVT, sbot::Sbot, utils}; use crate::{error::GolgiError, messages::SsbMessageKVT, sbot::Sbot, utils};
//use crate::{error::GolgiError, messages::SsbMessageValue, sbot::Sbot, utils};
impl Sbot { impl Sbot {
// TODO: update this example code
/// Call the `tanglesThread` RPC method. Returns messages in the form /// Call the `tanglesThread` RPC method. Returns messages in the form
/// of KVTs (Key Value Timestamp). /// of KVTs (Key Value Timestamp).
/// ///
@ -48,18 +45,14 @@ impl Sbot {
&mut self, &mut self,
args: TanglesThread, args: TanglesThread,
) -> Result<impl Stream<Item = Result<SsbMessageKVT, GolgiError>>, GolgiError> { ) -> Result<impl Stream<Item = Result<SsbMessageKVT, GolgiError>>, GolgiError> {
// ) -> Result<impl Stream<Item = Result<SsbMessageValue, GolgiError>>, GolgiError> {
let mut sbot_connection = self.get_sbot_connection().await?; let mut sbot_connection = self.get_sbot_connection().await?;
let req_id = sbot_connection let req_id = sbot_connection
.client .client
.tangles_thread_req_send(&args) .tangles_thread_req_send(&args)
.await?; .await?;
println!("{}", req_id);
let thread_stream = let thread_stream =
utils::get_source_stream(sbot_connection.rpc_reader, req_id, utils::kvt_res_parse) utils::get_source_stream(sbot_connection.rpc_reader, req_id, utils::kvt_res_parse)
//utils::get_source_stream(sbot_connection.rpc_reader, req_id, utils::ssb_message_res_parse)
.await; .await;
Ok(thread_stream) Ok(thread_stream)
} }