Skip to content

Commit 9c434cb

Browse files
committed
chore: debug log for which pubsub client is used
1 parent 23b629e commit 9c434cb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

magicblock-chainlink/src/remote_account_provider/chain_updates_client.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use async_trait::async_trait;
2+
use log::*;
23
use solana_pubkey::Pubkey;
34
use solana_sdk::commitment_config::CommitmentConfig;
45

@@ -27,6 +28,10 @@ impl ChainUpdatesClient {
2728
format!("Helius laser endpoint: {}", endpoint.pubsub_url),
2829
));
2930
};
31+
debug!(
32+
"Initializing Helius Laser client for endpoint: {}",
33+
endpoint.pubsub_url
34+
);
3035
ChainUpdatesClient::Laser(
3136
ChainLaserClientImpl::new_from_url(
3237
&url,
@@ -36,6 +41,10 @@ impl ChainUpdatesClient {
3641
.await?,
3742
)
3843
} else {
44+
debug!(
45+
"Initializing WebSocket client for endpoint: {}",
46+
endpoint.pubsub_url
47+
);
3948
ChainUpdatesClient::WebSocket(
4049
ChainPubsubClientImpl::try_new_from_url(
4150
&endpoint.pubsub_url,

0 commit comments

Comments
 (0)