Skip to content

Commit

Permalink
fix(shadow): Remove unused tenant_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
henil committed Oct 1, 2022
1 parent 5b976d3 commit 0d9c924
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion rumqttd/src/link/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ impl ConsoleLink {
/// Requires the corresponding Router to be running to complete
pub fn new(config: ConsoleSettings, router_tx: Sender<(ConnectionId, Event)>) -> ConsoleLink {
let tx = router_tx.clone();
let (link_tx, link_rx, _ack) = Link::new(/*None,*/ "console", tx, true, None, true).unwrap();
let (link_tx, link_rx, _ack) =
Link::new(/*None,*/ "console", tx, true, None, true).unwrap();
let connection_id = link_tx.connection_id;
ConsoleLink {
config,
Expand Down
10 changes: 2 additions & 8 deletions rumqttd/src/link/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,8 @@ impl ShadowLink {
let subscriptions = HashSet::new();
let client_id = connect.client_id.clone();

let (link_tx, link_rx, _ack) = Link::new(
None,
&client_id,
router_tx,
true,
None,
config.dynamic_filters,
)?;
let (link_tx, link_rx, _ack) =
Link::new(&client_id, router_tx, true, None, config.dynamic_filters)?;
let connection_id = link_rx.id();

// Send connection acknowledgement back to the client
Expand Down
2 changes: 1 addition & 1 deletion rumqttd/src/server/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl<P: Protocol + Clone + Send + 'static> Server<P> {
None => Ok(/*(*/ Box::new(stream) /*, None)*/),
}
#[cfg(not(any(feature = "use-rustls", feature = "use-native-tls")))]
Ok(/*(*/Box::new(stream)/*, None)*/)
Ok(/*(*/ Box::new(stream) /*, None)*/)
}

async fn start(&self, shadow: bool) -> Result<(), Error> {
Expand Down

0 comments on commit 0d9c924

Please sign in to comment.