Skip to content

Commit

Permalink
worker: connect_addr is now the "--connect" named option
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA authored and talex5 committed Jul 14, 2021
1 parent eece594 commit e04fcd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ contains a secret token granting it access.
To run the build service locally:

```
ocluster-worker ./capnp-secrets/pool-linux-x86_64.cap \
ocluster-worker -c ./capnp-secrets/pool-linux-x86_64.cap \
--state-dir=/var/lib/ocluster-worker \
--name=my-host --capacity=1 --prune-threshold=20
```
Expand Down
4 changes: 2 additions & 2 deletions bin/worker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ let worker_name =

let connect_addr =
Arg.required @@
Arg.pos 0 Arg.(some file) None @@
Arg.opt Arg.(some file) None @@
Arg.info
~doc:"Path of register.cap from build-scheduler"
~docv:"ADDR"
[]
["c"; "connect"]

let capacity =
Arg.value @@
Expand Down

0 comments on commit e04fcd2

Please sign in to comment.