File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
apps/hermes/server/src/api/rest Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 88 } ,
99} ;
1010
11+ /// Endpoint that returns OK (200) only when the cache is fully hydrated.
12+ ///
13+ /// The cache is considered fully hydrated when all of the following conditions are met:
14+ /// - `has_completed_recently`: The latest completed update is recent (within the staleness threshold)
15+ /// - `is_not_behind`: The latest completed slot isn't too far behind the latest observed slot
16+ /// - `is_metadata_loaded`: Price feeds metadata is not empty
17+ ///
18+ /// If any of these conditions are not met, the endpoint returns SERVICE_UNAVAILABLE (503)
19+ /// along with detailed metadata about the readiness state.
1120pub async fn ready < S > ( State ( state) : State < ApiState < S > > ) -> Response
1221where
1322 S : Aggregates ,
You can’t perform that action at this time.
0 commit comments