| 432 | } |
| 433 | |
| 434 | void finished(const Future<Nothing>& future) |
| 435 | { |
| 436 | if (future.isDiscarded()) { |
| 437 | promise.discard(); |
| 438 | terminate(self()); |
| 439 | } else if (future.isFailed()) { |
| 440 | promise.fail(future.failure()); |
| 441 | terminate(self()); |
| 442 | } else { |
| 443 | promise.set(end); |
| 444 | terminate(self()); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | const size_t quorum; |
| 449 | Shared<Replica> replica; |