cargo fmt
This commit is contained in:
parent
f170c09a02
commit
adbf8eba80
@ -1,25 +1,20 @@
|
|||||||
use crate::{
|
use crate::config::Config;
|
||||||
config::Config,
|
use crate::name_generator::random_app_name;
|
||||||
name_generator::random_app_name,
|
use crate::sgx::grpc_brain::{get_app_node_list, new_app};
|
||||||
sgx::{
|
use crate::sgx::grpc_dtpm::{dtpm_client, set_config_pb, upload_files_pb};
|
||||||
append_uuid_list,
|
use crate::sgx::utils::{
|
||||||
grpc_brain::{get_app_node_list, new_app},
|
calculate_nanocredits_for_app, fetch_config, hratls_url_and_mr_enclave_from_app_id,
|
||||||
grpc_dtpm::{dtpm_client, set_config_pb, upload_files_pb},
|
|
||||||
package_entry_from_name,
|
|
||||||
utils::{
|
|
||||||
calculate_nanocredits_for_app, fetch_config, hratls_url_and_mr_enclave_from_app_id,
|
|
||||||
},
|
|
||||||
AppDeployResponse, Error, PackageElement,
|
|
||||||
},
|
|
||||||
snp,
|
|
||||||
};
|
};
|
||||||
use detee_shared::{
|
use crate::sgx::{
|
||||||
app_proto::{AppNodeFilters, AppNodeListResp, AppResource, NewAppReq},
|
append_uuid_list, package_entry_from_name, AppDeployResponse, Error, PackageElement,
|
||||||
sgx::pb::dtpm_proto::DtpmSetConfigReq,
|
|
||||||
};
|
};
|
||||||
|
use crate::snp;
|
||||||
|
use detee_shared::app_proto::{AppNodeFilters, AppNodeListResp, AppResource, NewAppReq};
|
||||||
|
use detee_shared::sgx::pb::dtpm_proto::DtpmSetConfigReq;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_default_utils::*;
|
use serde_default_utils::*;
|
||||||
use tokio_retry::{strategy::FixedInterval, Retry};
|
use tokio_retry::strategy::FixedInterval;
|
||||||
|
use tokio_retry::Retry;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||||
pub struct Reqwest {
|
pub struct Reqwest {
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use crate::constants::HRATLS_APP_PORT;
|
use crate::constants::HRATLS_APP_PORT;
|
||||||
use crate::sgx::get_one_contract;
|
use crate::sgx::{get_one_contract, Error};
|
||||||
use crate::sgx::Error;
|
|
||||||
use detee_shared::sgx::types::dtpm::{DtpmConfig, EnvironmentEntry};
|
use detee_shared::sgx::types::dtpm::{DtpmConfig, EnvironmentEntry};
|
||||||
|
|
||||||
pub async fn hratls_url_and_mr_enclave_from_app_id(
|
pub async fn hratls_url_and_mr_enclave_from_app_id(
|
||||||
|
Loading…
Reference in New Issue
Block a user