Skip to content

Commit

Permalink
fix: ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
royalpinto007 committed Feb 7, 2024
1 parent ba4a315 commit 61f569a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion coffee_core/src/coffee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ impl PluginManager for CoffeeManager {
.get_mut(repo)
.ok_or_else(|| error!("Repository with name: `{}` not found", repo))?;

let status = repository.upgrade(&self.config.plugins).await?;
let status = repository.upgrade(&self.config.plugins, verbose).await?;

// if status is not up to date, we need to update the plugins as well
match status.status {
Expand Down
11 changes: 5 additions & 6 deletions coffee_plugin/src/plugin/plugin_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ fn coffee_install(plugin: &mut Plugin<State>, request: Value) -> Result<Value, P
let mut coffee = coffee.lock().unwrap();
let rt = Runtime::new().unwrap();

let request: InstallReq = serde_json::from_value(request)?;
rt.block_on(coffee.install(&request.name, false, true, Some(request.branch)))
.map_err(from)?;
Ok(json!({}))
}

let request: InstallReq = serde_json::from_value(request)?;
rt.block_on(coffee.install(&request.name, false, true, Some(request.branch)))
.map_err(from)?;
Ok(json!({}))
}

#[rpc_method(
rpc_name = "coffee_list",
Expand Down

0 comments on commit 61f569a

Please sign in to comment.