Skip to content

Commit

Permalink
Remove the source if the actor is live
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Oct 23, 2023
1 parent aaae661 commit d6cf915
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resolver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ pub fn to_actor(character: &CharacterSpec, credentials: &Credentials) -> Result<
if !actor.live {
actor.source = Some(patches::source(&client, &actor.source.unwrap())?);
actor.image = patches::image(credentials, &actor)?;
} else {
// Remove the source if the actor is live.
// it will be sync with the syncer later, so this is not necessary.
actor.source = None;
}

Ok(actor)
Expand Down

0 comments on commit d6cf915

Please sign in to comment.