Skip to content

Commit

Permalink
Merge pull request #317 from CESSProject:chore/clean
Browse files Browse the repository at this point in the history
Chore: clean some unused arguments in cli and makefile
  • Loading branch information
0xbillw authored Mar 11, 2024
2 parents b146337 + 231f43b commit c6ad11c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion standalone/teeworker/ceseal/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SGX_MODE ?= SW
BUILD?=release
ifeq ($(BUILD),release)
XARGS=--release
Expand Down
5 changes: 4 additions & 1 deletion standalone/teeworker/ceseal/gramine-build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ ${BIN_FILE}:
@echo "IAS_ENV: ${IAS_ENV}"
@echo "IAS_SPID: ${IAS_SPID}"
@echo "IAS_API_KEY: ${IAS_API_KEY}"
make BUILD=${BUILD} -C ..
@echo "BUILD: ${BUILD}"
@echo "OA: ${OA}"
@echo "VC: ${VC}"
make BUILD=${BUILD} OA=${OA} VC=${VC} -C ..

${BIN_NAME}: ${BIN_FILE}
cp ${BIN_FILE} ${BIN_NAME}
Expand Down
12 changes: 4 additions & 8 deletions standalone/teeworker/ceseal/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,19 @@ use tracing::info;
#[derive(Parser, Debug, Clone)]
#[clap(about = "The CESS TEE worker app.", version, author)]
struct Args {
/// Number of CPU cores to be used for mining.
/// Number of CPU cores to be used for PODR2 thread-pool.
#[arg(short, long)]
cores: Option<u32>,

/// Allow CORS for HTTP
#[arg(long)]
allow_cors: bool,

/// Listening IP address of HTTP
/// Listening IP address of internal H2 server
#[arg(long)]
address: Option<String>,

/// Listening port of HTTP
/// Listening port of internal H2 server
#[arg(long)]
port: Option<u16>,

/// Listening port of HTTP (with access control)
/// Listening port of public H2 server
#[arg(long)]
public_port: Option<u16>,

Expand Down

0 comments on commit c6ad11c

Please sign in to comment.