Skip to content

Commit 51c7f29

Browse files
committed
clippy fix
1 parent 87dbf62 commit 51c7f29

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libdd-data-pipeline/src/agent_info/fetcher.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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`
3737
async 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`
6166
pub async fn fetch_info_with_state(
6267
info_endpoint: &Endpoint,
6368
current_state_hash: Option<&str>,

0 commit comments

Comments
 (0)