Skip to content

Commit

Permalink
refactor: remove link send mut
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Sep 22, 2023
1 parent 765cff9 commit 545d249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rumqttd/src/link/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl LinkTx {
}

/// Send raw device data
pub async fn send(&mut self, data: Packet) -> Result<usize, LinkError> {
pub async fn send(&self, data: Packet) -> Result<usize, LinkError> {
let len = {
let mut buffer = self.recv_buffer.lock();
buffer.push_back(data);
Expand Down

0 comments on commit 545d249

Please sign in to comment.