Skip to content

Commit

Permalink
doc: revert update to illustration
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Jan 1, 2024
1 parent 2397943 commit 8a72b82
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions uplink/src/base/serializer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,25 +225,25 @@ impl StorageHandler {
///
/// ```text
///
/// Send publishes in Storage to No more publishes
/// Network, write new data to disk left in Storage
/// ┌---------------------┐ ┌──────┐
/// │Serializer::catchup()├───────────────────────────────────────►Normal│
/// └---------▲---------┬-┘ └───┬──┘
/// │ │ Network has crashed │
/// Network is │ │ ┌───────────────────────┐ │
/// available │ ├────►EventloopCrash(publish)│ │
/// ┌-------------------┐ ┌----------------------┐ ┌───────┴──────┐ │ └───────────┬───────────┘ ┌----------▼---------┐
/// │Serializer::start()├──►Serializer::recovery()├──►EventloopReady│ │ ┌------------▼-------------┐ │Serializer::normal()│ Forward all data to Network
/// └-------------------┘ └----------------------┘ └───────▲──────┘ │ │Serializer::crash(publish)├─┐ └----------┬---------┘
/// │ │ └-------------------------▲┘ │ │
/// │ │ Write all data to Storage└──┘ │
/// │ │ │
/// ┌---------┴---------┴-----┐ ┌───────────▼──────────┐
/// │Serializer::slow(publish)◄───────────────────────────┤SlowEventloop(publish)│
/// └-------------------------┘ └──────────────────────┘
/// Write to storage, Slow network encountered
/// but continue trying to publish
/// Send publishes in Storage to No more publishes
/// Network, write new data to disk left in Storage
/// ┌---------------------┐ ┌──────┐
/// │Serializer::catchup()├───────────────────────────────────────►Normal│
/// └---------▲---------┬-┘ └───┬──┘
/// │ │ Network has crashed │
/// Network is │ │ ┌───────────────────────┐ │
/// available │ ├────►EventloopCrash(publish)│ │
/// ┌-------------------┐ ┌───────┴──────┐ │ └───────────┬───────────┘ ┌----------▼---------┐
/// │Serializer::start()├────►EventloopReady│ │ ┌------------▼-------------┐ │Serializer::normal()│ Forward all data to Network
/// └-------------------┘ └───────▲──────┘ │ │Serializer::crash(publish)├─┐ └----------┬---------┘
/// │ │ └-------------------------▲┘ │ │
/// │ │ Write all data to Storage└──┘ │
/// │ │ │
/// ┌---------┴---------┴-----┐ ┌───────────▼──────────┐
/// │Serializer::slow(publish)◄───────────────────────────┤SlowEventloop(publish)│
/// └-------------------------┘ └──────────────────────┘
/// Write to storage, Slow network encountered
/// but continue trying to publish
///
///```
/// [`start()`]: Serializer::start
Expand Down

0 comments on commit 8a72b82

Please sign in to comment.