diff --git a/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs b/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs index 7c56c0cb1..bde66641e 100644 --- a/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs +++ b/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs @@ -30,7 +30,7 @@ use tari_dan_engine::function_definitions::FlowFunctionDefinition; use tari_dan_storage::global::{DbTemplateType, DbTemplateUpdate, TemplateStatus}; use tari_engine_types::calculate_template_binary_hash; use tari_shutdown::ShutdownSignal; -use tari_template_lib::{models::TemplateAddress, Hash}; +use tari_template_lib::models::TemplateAddress; use tari_validator_node_client::types::{ArgDef, FunctionDef, TemplateAbi}; use tokio::{ sync::{mpsc, mpsc::Receiver, oneshot}, @@ -67,8 +67,8 @@ impl TemplateManagerService { download_queue, completed_downloads, } - .run(shutdown) - .await?; + .run(shutdown) + .await?; Ok(()) }) } @@ -131,10 +131,10 @@ impl TemplateManagerService { self.handle_add_template(author_public_key, template_address, template, template_name) .await, ); - }, + } GetTemplate { address, reply } => { handle(reply, self.manager.fetch_template(&address)); - }, + } GetTemplates { limit, reply } => handle(reply, self.manager.fetch_template_metadata(limit)), LoadTemplateAbi { address, reply } => handle(reply, self.handle_load_template_abi(address)), } @@ -212,7 +212,7 @@ impl TemplateManagerService { target: LOG_TARGET, "⚠️ Template {} is not valid json: {}", download.template_address, e ); - }, + } }; DbTemplateUpdate { @@ -220,11 +220,11 @@ impl TemplateManagerService { status: Some(status), ..Default::default() } - }, + } DbTemplateType::Manifest => todo!(), }; self.manager.update_template(download.template_address, update)?; - }, + } Err(err) => { warn!(target: LOG_TARGET, "🚨 Failed to download template: {}", err); self.manager @@ -232,7 +232,7 @@ impl TemplateManagerService { status: Some(TemplateStatus::DownloadFailed), ..Default::default() })?; - }, + } } Ok(()) }