Skip to content

Instantly share code, notes, and snippets.

@jmcph4
Last active July 3, 2023 02:30
Show Gist options
  • Select an option

  • Save jmcph4/9edd2215bcedffb3f71b75ead012c6ef to your computer and use it in GitHub Desktop.

Select an option

Save jmcph4/9edd2215bcedffb3f71b75ead012c6ef to your computer and use it in GitHub Desktop.
digraph backfill_sync_fsa {
fontname="Helvetica,Arial,sans-serif"
node [fontname="Helvetica,Arial,sans-serif"]
edge [fontname="Helvetica,Arial,sans-serif"]
node [shape = doublecircle]; Completed Failed NotRequired;
node [shape = circle];
Syncing -> Syncing [label = "BackFillSync::start"];
Paused -> Paused [label = "BackFillSync::start, no peers"];
Failed -> Completed [label = "BackFillSync::start, ResetEpochError::SyncCompleted"];
Failed -> NotRequired [label = "BackFillSync::start, ResetEpochError::NotRequired"];
Syncing -> Paused [label = "BackFillSync::retry_batch_download, new_peer.is_none()"];
Completed -> Paused [label = "BackFillSync::retry_batch_download, new_peer.is_none()"];
Paused -> Paused [label = "BackFillSync::retry_batch_download, new_peer.is_none()"];
Failed -> Paused [label = "BackFillSync::retry_batch_download, new_peer.is_none()"];
NotRequired -> Paused [label = "BackFillSync::retry_batch_download, new_peer.is_none()"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment