Skip to content

Commit

Permalink
Merge branch 'main' of github.com:premAI-io/prem-app into feat/petals…
Browse files Browse the repository at this point in the history
…-services-python
  • Loading branch information
biswaroop1547 committed Nov 3, 2023
2 parents 0e2223e + 9e4cf8e commit 374ac43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src-tauri/src/download.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::errors::{Context, Result};
use std::collections::HashMap;
use std::sync::Arc;

use crate::{err, utils, SharedState};
use futures::StreamExt;
Expand Down Expand Up @@ -144,7 +145,7 @@ impl<R: Runtime> Downloader<R> {
total_file_size: u64,
size_on_disk: u64,
) -> Result<()> {
let state = self.window.state::<SharedState>();
let state = self.window.state::<Arc<SharedState>>();
let mut downloading_files_guard = state.downloading_files.lock().await;
if downloading_files_guard.contains(&output_path.as_ref().to_string()) {
log::warn!("File already downloading: {}", output_path.as_ref());
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ fn main() {
.setup(|app| {
tauri::async_runtime::block_on(async move {
utils::fetch_services_manifests(
"https://raw.githubusercontent.com/premAI-io/prem-registry/dev/manifests.json",
"https://raw.githubusercontent.com/premAI-io/prem-registry/v1/manifests.json",
app.state::<Arc<SharedState>>().deref().clone(),
)
.await
Expand Down
1 change: 0 additions & 1 deletion src/controller/serviceController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class ServiceController implements IServiceController {
if (serviceType === "docker") {
useSettingStore.getState().addServiceAsDownloading(serviceId);
await this.dockerController.download({ serviceId, afterSuccess });
useSettingStore.getState().removeServiceAsDownloading(serviceId);
} else if (serviceType === "binary") {
useSettingStore.getState().addServiceAsDownloading(serviceId);
await this.binariesController.download({
Expand Down

0 comments on commit 374ac43

Please sign in to comment.