Browse Source

Fix usage of proto message parsing

On account of https://github.com/google/protobuf/pull/1712
Jorge Canizales 9 năm trước cách đây
mục cha
commit
fb3a71d9c0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/objective-c/examples/SwiftSample/ViewController.swift

+ 1 - 1
src/objective-c/examples/SwiftSample/ViewController.swift

@@ -91,7 +91,7 @@ class ViewController: UIViewController {
 
     call.startWithWriteable(GRXWriteable { response, error in
       if let response = response as? NSData {
-        NSLog("3. Received response:\n\(RMTSimpleResponse(data: response, error: nil))")
+        NSLog("3. Received response:\n\(try! RMTSimpleResponse(data: response))")
       } else {
         NSLog("3. Finished with error: \(error!)")
       }