the builder reads an agent's icon from its config and the controller writes the swarm's copy
This commit is contained in:
parent
07ca0b6100
commit
181ef5f421
1 changed files with 299 additions and 13 deletions
|
|
@ -212,6 +212,7 @@ pub async fn cache_built(
|
|||
system,
|
||||
private_users,
|
||||
nix_builds,
|
||||
icon,
|
||||
..
|
||||
},
|
||||
) = (cache, &reply)
|
||||
|
|
@ -240,6 +241,7 @@ pub async fn cache_built(
|
|||
cached: true,
|
||||
private_users: *private_users,
|
||||
nix_builds: *nix_builds,
|
||||
icon: icon.clone(),
|
||||
}
|
||||
}
|
||||
Err(reason) => {
|
||||
|
|
@ -268,6 +270,7 @@ mod tests {
|
|||
cached: false,
|
||||
private_users: None,
|
||||
nix_builds: Some(NixBuilds::Disabled),
|
||||
icon: Some(swarm_wire::builder::IconRead::Unset),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -306,6 +309,7 @@ mod tests {
|
|||
FromMetaReply::Built {
|
||||
private_users: None,
|
||||
nix_builds: Some(NixBuilds::Disabled),
|
||||
icon: Some(swarm_wire::builder::IconRead::Unset),
|
||||
..
|
||||
}
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue