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

Examples using a config file with mode: "cient" remain in peer mode #700

Closed
JEnoch opened this issue Jan 30, 2024 · 1 comment · Fixed by #702
Closed

Examples using a config file with mode: "cient" remain in peer mode #700

JEnoch opened this issue Jan 30, 2024 · 1 comment · Fixed by #702
Assignees
Labels
bug Something isn't working

Comments

@JEnoch
Copy link
Member

JEnoch commented Jan 30, 2024

Describe the bug

Using such a config file:

{ mode: "client" }

All example are not using the client mode, but the peer mode.

To reproduce

  1. create a conf.json5 file as such:
    { mode: "client" }
  2. Start a Zenoh router: zenohd
  3. Start any example with the config file: z_sub -c conf.json5
  4. Check the bridge mode as discovered by the bridge at http://localhost:8000/@/router/local (see "whatami" value)

System info

  • v0.10.0-rc
@JEnoch JEnoch added the bug Something isn't working label Jan 30, 2024
@JEnoch
Copy link
Member Author

JEnoch commented Jan 30, 2024

Simpler way to reproduce:
RUST_LOG=z=debug z_sub -c conf.json5
See in 1st line of log:

[2024-01-30T17:32:12Z DEBUG zenoh::session] Config: Config { id: ab77ffc99d11f93feb6fa200b00e13dd, metadata: Null, mode: Some(Peer), ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant