Skip to content

Commit 78cf14f

Browse files
committed
fixup: lifecycle summary
Signed-off-by: Todd Baert <[email protected]>
1 parent f9a7a15 commit 78cf14f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/reference/specifications/providers.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ The lifecycle is summarized below:
7676
- for RPC providers, flags resolved with `reason=STATIC` are [cached](#caching)
7777
- if flags change the associated stream (event or sync) indicates flags have changed, flush cache, or update `flag set` rules respectively and emit `PROVIDER_CONFIGURATION_CHANGED`
7878
- if stream disconnects:
79-
- attempt to [reconnect](#stream-reconnection) silently immediately
80-
- if initial reconnect succeeds, do nothing
81-
- if initial reconnect fails:
79+
- [reconnect](#stream-reconnection) with backoff
80+
- if reconnect attempt > `retryGraceAttempts`
8281
- emit `PROVIDER_ERROR`
83-
- RPC providers invalidate cache
84-
- reconnect with backoff
82+
- if reconnect attempt <= `retryGraceAttempts`
83+
- emit `PROVIDER_STALE`
84+
- RPC mode resolves `STALE` from cache where possible
85+
- in-process mode resolves `STALE` from stored `flag set` rules
8586
- on stream reconnection:
8687
- emit `PROVIDER_READY` and `PROVIDER_CONFIGURATION_CHANGED`
8788
- in-process providers store the latest `flag set` rules

0 commit comments

Comments
 (0)