|
|
@ -66,6 +66,8 @@ |
|
|
|
// A writer that serializes the proto messages to send. |
|
|
|
// A writer that serializes the proto messages to send. |
|
|
|
id<GRXWriter> bytesWriter = |
|
|
|
id<GRXWriter> bytesWriter = |
|
|
|
[[[GRXWriter alloc] initWithWriter:requestsWriter] map:^id(GPBMessage *proto) { |
|
|
|
[[[GRXWriter alloc] initWithWriter:requestsWriter] map:^id(GPBMessage *proto) { |
|
|
|
|
|
|
|
// TODO(jcanizales): Fail with an understandable error message if the requestsWriter isn't |
|
|
|
|
|
|
|
// sending GPBMessages. |
|
|
|
return [proto data]; |
|
|
|
return [proto data]; |
|
|
|
}]; |
|
|
|
}]; |
|
|
|
if ((self = [super initWithHost:host method:method requestsWriter:bytesWriter])) { |
|
|
|
if ((self = [super initWithHost:host method:method requestsWriter:bytesWriter])) { |
|
|
|