Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo of 'num_workes' to 'num_workers' in README and code #32

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions prover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -91,15 +91,15 @@ 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`
- **Default:** `4`
- **Example:**

```sh
--num-workes 8
--num-workers 8
```

### 9. `--admin-key`
Expand Down
2 changes: 1 addition & 1 deletion prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct Args {
#[arg(long, env, value_delimiter = ',')]
pub authorized_keys: Vec<String>,
#[arg(long, env, default_value = "4")]
pub num_workes: usize,
pub num_workers: usize,
#[arg(long, env)]
pub admin_key: String,
}
2 changes: 1 addition & 1 deletion prover/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
};
Expand Down