service/sol: Be more verbose on subscription init.

This commit is contained in:
parazyd
2021-10-20 20:29:28 +02:00
parent a67fa16762
commit 8cb2af3003

View File

@@ -109,6 +109,15 @@ impl SolClient {
keypair.pubkey()
};
if mint.is_some() {
debug!(target: "SOL BRIDGE", "Got subscribe request for SPL token");
debug!(target: "SOL BRIDGE", "Main wallet: {}", keypair.pubkey());
debug!(target: "SOL BRIDGE", "Associated token address: {}", pubkey);
} else {
debug!(target: "SOL BRIDGE", "Got subscribe request for native SOL");
debug!(target: "SOL BRIDGE", "Main wallet: {}", keypair.pubkey());
}
// Check if we're already subscribed
if self.subscriptions.lock().await.contains(&pubkey) {
return Ok(());