Browse Source

sol: minor changes

ghassmo 4 years ago
parent
commit
9c3dadbae1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/service/sol.rs

+ 3 - 1
src/service/sol.rs

@@ -110,7 +110,9 @@ impl SolClient {
         };
 
         // Check if we're already subscribed
-        if self.subscriptions.lock().await.contains(&pubkey) {}
+        if self.subscriptions.lock().await.contains(&pubkey) {
+            return Ok(());
+        }
 
         let rpc = RpcClient::new(self.rpc_server.to_string());