Skip to content

Commit

Permalink
Set client_id in ConnectionMetadata (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
trobanga authored Jan 31, 2025
1 parent 9d0cd68 commit 3571df9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,10 @@ impl Connection {
connection_url: connection_url.into(),
reader: Mutex::new(reader),
writer: Mutex::new(writer),
connection_metadata: Mutex::new(ConnectionMetadata::default()),
connection_metadata: Mutex::new(ConnectionMetadata {
client_id,
..Default::default()
}),
max_retries: MAX_RETRIES,
recorder: MessageRecorder::new(),
};
Expand Down

0 comments on commit 3571df9

Please sign in to comment.