| 760 | } |
| 761 | |
| 762 | void DebugGrpcChannel::ReceiveAndProcessEventReplies(const size_t max_replies) { |
| 763 | EventReply event_reply; |
| 764 | size_t num_replies = 0; |
| 765 | while ((max_replies == 0 || ++num_replies <= max_replies) && |
| 766 | ReadEventReply(&event_reply)) { |
| 767 | for (const EventReply::DebugOpStateChange& debug_op_state_change : |
| 768 | event_reply.debug_op_state_changes()) { |
| 769 | string watch_key = strings::StrCat(debug_op_state_change.node_name(), ":", |
| 770 | debug_op_state_change.output_slot(), |
| 771 | ":", debug_op_state_change.debug_op()); |
| 772 | DebugGrpcIO::SetDebugNodeKeyGrpcState(url_, watch_key, |
| 773 | debug_op_state_change.state()); |
| 774 | } |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | Status DebugGrpcChannel::ReceiveServerRepliesAndClose() { |
| 779 | reader_writer_->WritesDone(); |
no test coverage detected