| 54 | } |
| 55 | |
| 56 | void Exchange::Complete(Status status) { |
| 57 | if (status.ok()) { |
| 58 | if (!GrpcMaybeParseProto(&response_buf_, response_)) { |
| 59 | status.Update(errors::Internal("could not parse rpc response")); |
| 60 | } |
| 61 | } |
| 62 | VLOG(3) << "Completing exchange " << DebugString() << " with " |
| 63 | << status.ToString(); |
| 64 | cb_(status); |
| 65 | } |
| 66 | |
| 67 | std::ostream& operator<<(std::ostream& os, const Exchange::State& state) { |
| 68 | os << ToString(state); |
no test coverage detected