Skip to content

Commit 245865a

Browse files
committed
ditch logging again and keep to the experiment pr
1 parent b29841f commit 245865a

File tree

1 file changed

+0
-5
lines changed
  • subxt/src/backend/unstable

1 file changed

+0
-5
lines changed

subxt/src/backend/unstable/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
471471
if let Poll::Ready(Some(seen_block)) = seen_blocks_sub.poll_next_unpin(cx) {
472472
match seen_block {
473473
FollowEvent::NewBlock(ev) => {
474-
println!("New block seen: {:?}", ev.block_hash.hash());
475474
// Optimization: once we have a `finalized_hash`, we only care about finalized
476475
// block refs now and can avoid bothering to save new blocks.
477476
if finalized_hash.is_none() {
@@ -481,7 +480,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
481480
}
482481
FollowEvent::Finalized(ev) => {
483482
for block_ref in ev.finalized_block_hashes {
484-
println!("Finalized block seen: {:?}", block_ref.hash());
485483
seen_blocks.insert(
486484
block_ref.hash(),
487485
(SeenBlockMarker::Finalized, block_ref),
@@ -496,10 +494,8 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
496494
// If we have a finalized hash, we are done looking for tx events and we are just waiting
497495
// for a pinned block with a matching hash (which must appear eventually given it's finalized).
498496
if let Some(hash) = &finalized_hash {
499-
println!("Looking for finalized hash {hash:?}");
500497
if let Some((SeenBlockMarker::Finalized, block_ref)) = seen_blocks.remove(hash)
501498
{
502-
println!("Found finalized hash!");
503499
// Found it! Hand back the event with a pinned block. We're done.
504500
done = true;
505501
let ev = TransactionStatus::InFinalizedBlock {
@@ -524,7 +520,6 @@ impl<T: Config + Send + Sync + 'static> Backend<T> for UnstableBackend<T> {
524520
Poll::Ready(Some(Err(e))) => return Poll::Ready(Some(Err(e))),
525521
Poll::Ready(Some(Ok(ev))) => ev,
526522
};
527-
println!("TX Event seen: {ev:?}");
528523
// When we get one, map it to the correct format (or for finalized ev, wait for the pinned block):
529524
let ev = match ev {
530525
rpc_methods::TransactionStatus::Finalized { block } => {

0 commit comments

Comments
 (0)