     }
 }
 
-internal extension Result where Failure == Swift.Error {
-    
-    init(_ response: GATTClientResponse<Success>) {
-        switch response {
-        case let .success(value):
-            self = .success(value)
-        case let .failure(clientError):
-            self = .failure(clientError as Swift.Error)
-        }
-    }
-}
-
 #endif
-*/
+

                       characteristics: Array(gattService.characteristics.values.map { $0.attribute }))
        
        // GATT request
        let foundDescriptors = try await client.discoverDescriptors(for: gattCharacteristic.attribute, service: service)
        
        // update cache
        cache.insert(foundDescriptors, for: characteristic.id)

    
    public private(set) var error: Swift.Error?
    
    internal private(set) var cache = GATTClientConnectionCache()
    
    internal func maximumUpdateValueLength() async -> Int {
        // ATT_MTU-3
        return await Int(client.maximumTransmissionUnit.rawValue) - 3
    }
    
    // MARK: - Initialization
