Skip to content

Commit

Permalink
Merge pull request #136 from talex5/connect
Browse files Browse the repository at this point in the history
Use --connect for the worker capability too
  • Loading branch information
talex5 authored Jul 14, 2021
2 parents eece594 + 7202981 commit 9e57628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ contains a secret token granting it access.
To run the build service locally:

```
ocluster-worker ./capnp-secrets/pool-linux-x86_64.cap \
ocluster-worker \
--connect=./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 9e57628

Please sign in to comment.