mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
more debug
This commit is contained in:
@@ -46,6 +46,7 @@ impl RpcClient {
|
||||
params: RpcParams,
|
||||
) -> Result<Res, Error> {
|
||||
let res = self.0.request_raw(method, params.build()).await?;
|
||||
println!("{:?}", res.get());
|
||||
let val = serde_json::from_str(res.get())?;
|
||||
Ok(val)
|
||||
}
|
||||
|
||||
@@ -152,7 +152,6 @@ impl<T: Config, C: OnlineClientT<T>> Stream for TxProgress<T, C> {
|
||||
mut self: std::pin::Pin<&mut Self>,
|
||||
cx: &mut std::task::Context<'_>,
|
||||
) -> std::task::Poll<Option<Self::Item>> {
|
||||
eprintln!("-- poll_next");
|
||||
let sub = match self.sub.as_mut() {
|
||||
Some(sub) => sub,
|
||||
None => return Poll::Ready(None),
|
||||
@@ -162,7 +161,6 @@ impl<T: Config, C: OnlineClientT<T>> Stream for TxProgress<T, C> {
|
||||
match status {
|
||||
SubstrateTxStatus::Future => TxStatus::Future,
|
||||
SubstrateTxStatus::Ready => {
|
||||
eprintln!("-- ready");
|
||||
TxStatus::Ready
|
||||
},
|
||||
SubstrateTxStatus::Broadcast(peers) => TxStatus::Broadcast(peers),
|
||||
|
||||
Reference in New Issue
Block a user