| 1554 | return Status::OK(); |
| 1555 | } |
| 1556 | Status DoAction(const ServerCallContext&, const Action& action, |
| 1557 | std::unique_ptr<ResultStream>* result) override { |
| 1558 | if (action.type == "inc") { |
| 1559 | std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
| 1560 | counter_++; |
| 1561 | } |
| 1562 | *result = std::make_unique<ForeverResultStream>(); |
| 1563 | return Status::OK(); |
| 1564 | } |
| 1565 | Status ListActions(const ServerCallContext&, |
| 1566 | std::vector<ActionType>* actions) override { |
| 1567 | *actions = {}; |