diff --git a/Cargo.lock b/Cargo.lock index abd2e50..8214a45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,6 @@ -# SPDX-License-Identifier: Apache-2.0 - # This file is automatically @generated by Cargo. # It is not intended for manual editing. +# SPDX-License-Identifier: Apache-2.0 version = 4 [[package]] diff --git a/src/bin/detee-cli.rs b/src/bin/detee-cli.rs index 484aedd..0ef7b62 100644 --- a/src/bin/detee-cli.rs +++ b/src/bin/detee-cli.rs @@ -375,6 +375,7 @@ fn clap_cmd() -> Command { .arg( Arg::new("price") .long("price") + // TODO: maximum allowed price per month (for 732 hours) .help("price per unit per minute; check docs") .default_value("20000") .value_parser(clap::value_parser!(u64).range(1..50000000)) diff --git a/src/snp/deploy.rs b/src/snp/deploy.rs index 8d11d29..42147d5 100644 --- a/src/snp/deploy.rs +++ b/src/snp/deploy.rs @@ -157,6 +157,7 @@ impl Request { Ok((node.ip, new_vm_resp)) } + // TODO: get node that offers best offer for the user's request pub fn get_node(&self) -> Result { let (free_ports, offers_ipv4) = match &self.ipv4 { IPv4Config::PublishPorts(vec) => (vec.len() as u32, false), diff --git a/src/snp/mod.rs b/src/snp/mod.rs index 3de89ba..376e877 100644 --- a/src/snp/mod.rs +++ b/src/snp/mod.rs @@ -340,6 +340,7 @@ pub fn inspect_node(ip: String) -> Result { Ok(block_on(grpc::get_one_node(req))?) } +// TODO: this will now depend on the server's ratio pub fn calculate_nanolp( vcpus: u32, memory_mb: u32,