Factor replica and sync configuration into simple owned structs
This commit is contained in:
@@ -36,7 +36,7 @@ define_subcommand! {
|
||||
|
||||
subcommand_invocation! {
|
||||
fn run(&self, command: &CommandInvocation) -> Fallible<()> {
|
||||
let mut replica = command.get_replica();
|
||||
let mut replica = command.get_replica()?;
|
||||
let task = shared::get_task(&mut replica, &self.task)?;
|
||||
|
||||
let mut task = task.into_mut(&mut replica);
|
||||
|
||||
Reference in New Issue
Block a user