     func discoverAllPrimaryServices() async throws -> [Service] {
         return try await withUnsafeThrowingContinuation { [weak self] continuation in
             guard let self = self else { return }
-            self.discoverAllPrimaryServices { clientResponse in
-                continuation.resume(with: clientResponse)
+            self.discoverAllPrimaryServices {
+                continuation.resume(with: $0)
             }
         }
     }

            descriptors = Array(gattCharacteristic.descriptors.values.map { $0.attribute })
        } else {
            // fetch descriptors
            do { let _ = try await self.discoverDescriptors(for: characteristic) }
            catch { return AsyncThrowingStream(unfolding: { throw error }) }
            // get updated cache
            if let cache = self.cache.characteristic(for: characteristic.id)?.1.descriptors.values.map({ $0.attribute }) {
                descriptors = Array(cache)

                    
                }
            }
        }*/
    }
    
    // MARK: - Methods
