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 8
8
} ,
9
9
} ;
10
10
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.
11
20
pub async fn ready < S > ( State ( state) : State < ApiState < S > > ) -> Response
12
21
where
13
22
S : Aggregates ,
You can’t perform that action at this time.
0 commit comments