From 535de0c0df0608f9917c62349e689cc6150ba4a4 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Mon, 6 Jan 2025 10:40:45 -0500 Subject: [PATCH] Add start--> to DsState diagram --- openapi/crucible-control.json | 2 +- upstairs/src/lib.rs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openapi/crucible-control.json b/openapi/crucible-control.json index c0ea3593d..a2f369725 100644 --- a/openapi/crucible-control.json +++ b/openapi/crucible-control.json @@ -287,7 +287,7 @@ ] }, "DsState": { - "description": "High-level states for a Downstairs\n\nThe state machine for a Downstairs is relatively simple:\n\n```text ┌────────────┐ ┌────► LiveRepair ├─────┐ ┌─────────┴┐ └─────┬──────┘ ┌─▼──────┐ │Connecting│ │ │Stopping│ └─▲───────┬┘ ┌─────▼──────┐ └─▲────┬─┘ │ └────► Active ├─────┘ │ │ └─────┬──────┘ │ │ │ │ └─────────────────◄┴─────────────────┘ ```\n\nComplexity is hidden in the `Connecting` state, which wraps a [`NegotiationState`] implementing the negotiation state machine.", + "description": "High-level states for a Downstairs\n\nThe state machine for a Downstairs is relatively simple:\n\n```text ┌────────────┐ ┌────► LiveRepair ├─────┐ start ┌─────────┴┐ └─────┬──────┘ ┌─▼──────┐ ────►│Connecting│ │ │Stopping│ └─▲───────┬┘ ┌─────▼──────┐ └─▲────┬─┘ │ └────► Active ├─────┘ │ │ └─────┬──────┘ │ │ │ │ └─────────────────◄┴─────────────────┘ ```\n\nComplexity is hidden in the `Connecting` state, which wraps a [`NegotiationState`] implementing the negotiation state machine.", "oneOf": [ { "description": "New connection", diff --git a/upstairs/src/lib.rs b/upstairs/src/lib.rs index dc215e886..f6cf449a9 100644 --- a/upstairs/src/lib.rs +++ b/upstairs/src/lib.rs @@ -719,15 +719,15 @@ pub(crate) struct RawReadResponse { /// The state machine for a Downstairs is relatively simple: /// /// ```text -/// ┌────────────┐ -/// ┌────► LiveRepair ├─────┐ -/// ┌─────────┴┐ └─────┬──────┘ ┌─▼──────┐ -/// │Connecting│ │ │Stopping│ -/// └─▲───────┬┘ ┌─────▼──────┐ └─▲────┬─┘ -/// │ └────► Active ├─────┘ │ -/// │ └─────┬──────┘ │ -/// │ │ │ -/// └─────────────────◄┴─────────────────┘ +/// ┌────────────┐ +/// ┌────► LiveRepair ├─────┐ +/// start ┌─────────┴┐ └─────┬──────┘ ┌─▼──────┐ +/// ────►│Connecting│ │ │Stopping│ +/// └─▲───────┬┘ ┌─────▼──────┐ └─▲────┬─┘ +/// │ └────► Active ├─────┘ │ +/// │ └─────┬──────┘ │ +/// │ │ │ +/// └─────────────────◄┴─────────────────┘ /// ``` /// /// Complexity is hidden in the `Connecting` state, which wraps a