Skip to content

Commit 2968f41

Browse files
authored
Support comma-separated list of roles in restate-server (#2319)
Summary: Allows restate-server to start with `--roles=admin,worker` in addition to the existing method of repeating the option `--roles=admin --roles=worker`. Note that `--role` is also a supported alias. This also fixes the Display impl of `Role` to print the kebab-case representation of the `Role` type for a consistency. Test Plan: Starting restate-server with a mixture of style works as expected: ``` cargo run --bin restate-server -- --roles=log-server,admin --role=metadata-store ... ... 2024-11-19T11:24:35.488926Z INFO restate_node My Node ID is N0:3 roles: admin | metadata-store | log-server address: http://127.0.0.1:5122/ ```
1 parent c2a44e2 commit 2968f41

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)