-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6d56f6
commit 5f0943f
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Polling | ||
|
||
<img src="mermaid/polling.png" width="300"> | ||
|
||
|
||
```sh | ||
flowchart TD | ||
subgraph ABC["**Polling**"] | ||
%% Nodes | ||
A("Initialize Polling") | ||
B("Get local account addresses and earliest fetch round") | ||
C("Post this data to backend and wait for response") | ||
D["Is there a change in any of those accounts since earliest fetch round?"] | ||
E("Update account & ASA cache") | ||
F("Wait 3.5 seconds") | ||
|
||
%% Edge connections between nodes | ||
A --> B --> C --> D -- Yes --> E | ||
D -- No --> F | ||
E --> F | ||
F --> B | ||
|
||
%% Node Shapes | ||
D@{shape: diam} | ||
end | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.