File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
libdd-data-pipeline/src/agent_info Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ pub enum FetchInfoStatus {
2929 NewState ( Box < AgentInfo > ) ,
3030}
3131
32- /// Fetch info from the given info_endpoint and compare its state to the current state hash .
32+ /// Fetch info from the given endpoint and compare state-related hashes .
3333///
34- /// If the state hash is different from the current one:
34+ /// If either the agent state hash or container tags hash is different from the current one:
3535/// - Return a `FetchInfoStatus::NewState` of the info struct
3636/// - Else return `FetchInfoStatus::SameState`
3737async fn fetch_info_with_state_and_container_tags (
@@ -58,6 +58,11 @@ async fn fetch_info_with_state_and_container_tags(
5858 Ok ( FetchInfoStatus :: NewState ( info) )
5959}
6060
61+ /// Fetch info from the given info_endpoint and compare its state to the current state hash.
62+ ///
63+ /// If the state hash is different from the current one:
64+ /// - Return a `FetchInfoStatus::NewState` of the info struct
65+ /// - Else return `FetchInfoStatus::SameState`
6166pub async fn fetch_info_with_state (
6267 info_endpoint : & Endpoint ,
6368 current_state_hash : Option < & str > ,
You can’t perform that action at this time.
0 commit comments