From 3fb80a67ef572f2c15dd1daff44d578ebcb5ea2e Mon Sep 17 00:00:00 2001 From: steebchen Date: Tue, 3 Sep 2024 15:22:46 -0400 Subject: [PATCH] Fix typo of 'num_workes' to 'num_workers' in README and code Corrected the spelling of 'num_workes' to 'num_workers' in the README documentation and source code. This ensures consistency and prevents potential confusion when configuring the number of worker threads. --- prover/README.md | 6 +++--- prover/src/lib.rs | 2 +- prover/src/server.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/prover/README.md b/prover/README.md index 4a7f262..4134342 100644 --- a/prover/README.md +++ b/prover/README.md @@ -8,7 +8,7 @@ The Cairo Proving Server is the core component responsible for managing and veri Here is an example of running the server with custom settings: ```sh -cairo-prover-server --host 127.0.0.1 --port 8080 --message-expiration-time 7200 --session-expiration-time 14400 --jwt-secret-key "my_super_secret_key" --authorized-keys-path /path/to/authorized_keys.json --authorized-keys "key1,key2,key3" --num-workes 8 --admin-key "admin_super_secret_key" +cairo-prover-server --host 127.0.0.1 --port 8080 --message-expiration-time 7200 --session-expiration-time 14400 --jwt-secret-key "my_super_secret_key" --authorized-keys-path /path/to/authorized_keys.json --authorized-keys "key1,key2,key3" --num-workers 8 --admin-key "admin_super_secret_key" ``` ## Command-Line Options @@ -91,7 +91,7 @@ The server can be configured via command-line arguments or environment variables This provides a list of authorized public keys directly on the command line or via environment variable. -### 8. `--num-workes` +### 8. `--num-workers` - **Description:** The number of worker threads that the server should use for handling tasks. - **Environment Variable:** `NUM_WORKES` @@ -99,7 +99,7 @@ The server can be configured via command-line arguments or environment variables - **Example:** ```sh - --num-workes 8 + --num-workers 8 ``` ### 9. `--admin-key` diff --git a/prover/src/lib.rs b/prover/src/lib.rs index b25cb20..b71ecb2 100644 --- a/prover/src/lib.rs +++ b/prover/src/lib.rs @@ -29,7 +29,7 @@ pub struct Args { #[arg(long, env, value_delimiter = ',')] pub authorized_keys: Vec, #[arg(long, env, default_value = "4")] - pub num_workes: usize, + pub num_workers: usize, #[arg(long, env)] pub admin_key: String, } diff --git a/prover/src/server.rs b/prover/src/server.rs index c80a600..c7d9558 100644 --- a/prover/src/server.rs +++ b/prover/src/server.rs @@ -69,7 +69,7 @@ pub async fn start(args: Args) -> Result<(), ProverError> { nonces: Arc::new(Mutex::new(HashMap::new())), authorizer, job_store: Arc::new(Mutex::new(Vec::new())), - thread_pool: Arc::new(Mutex::new(ThreadPool::new(args.num_workes))), + thread_pool: Arc::new(Mutex::new(ThreadPool::new(args.num_workers))), admin_key, sse_tx: Arc::new(Mutex::new(sse_tx)), };