         if self.centralManager.state == .poweredOn { return fn(OpperationResult.success(result: ())) }
         
         var attempts = 0
-        
         Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { timer in
             attempts += 1
             

            
            self.connectedPeers.remove(at: i)
        }
    }
}


                let peripherals = self.centralManager.retrievePeripherals(withIdentifiers: peripheralIds)
                
                for peripheral in peripherals {
                    guard let peer = peerManager.getSavedPeer(withId: peripheral.identifier) else { continue }
                    
                    peripheral.delegate = self
                    peer.peripheral = peripheral
                    
                    if let i = self.connectedPeers.index(where: { $0.id == peripheral.identifier }) {
                        self.connectedPeers[i] = peer
