-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match the 1.5.8 with up-rust and up-client-zenoh-rust (#8)
* Match the 1.5.8 with up-rust and up-client-zenoh-rust Signed-off-by: ChenYing Kuo <[email protected]> * Use up-transport-zenoh instead. Signed-off-by: ChenYing Kuo <[email protected]> --------- Signed-off-by: ChenYing Kuo <[email protected]>
- Loading branch information
Showing
7 changed files
with
115 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
use zenoh::config::Config; | ||
|
||
#[allow(clippy::must_use_candidate, clippy::missing_panics_doc)] | ||
pub fn get_zenoh_config() -> Config { | ||
// Load the config from file path | ||
// Config Examples: https://github.com/eclipse-zenoh/zenoh/blob/0.10.1-rc/DEFAULT_CONFIG.json5 | ||
// let mut zenoh_cfg = Config::from_file("./DEFAULT_CONFIG.json5").unwrap(); | ||
|
||
// Loat the default config struct | ||
let mut zenoh_cfg = Config::default(); | ||
// You can choose from Router, Peer, Client | ||
zenoh_cfg | ||
.set_mode(Some(zenoh::config::WhatAmI::Peer)) | ||
.unwrap(); | ||
|
||
zenoh_cfg | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.