We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8bd0f9 commit 476a470Copy full SHA for 476a470
1 file changed
duva/src/presentation/clients/stream.rs
@@ -135,14 +135,14 @@ impl ClientStreamWriter {
135
136
let (client_id, request_id) = auth_req.deconstruct()?;
137
138
- self.serialized_write(ConnectionResponses::Authenticated(ConnectionResponse {
139
- client_id: client_id.to_string(),
+ let connection_response = ConnectionResponse {
+ client_id: client_id.clone(),
140
request_id,
141
topology: cluster_manager.route_get_topology().await?,
142
is_leader_node: replication_state.role == ReplicationRole::Leader,
143
- replication_id: replication_state.replid.clone(),
144
- }))
145
- .await?;
+ replication_id: replication_state.replid,
+ };
+ self.serialized_write(ConnectionResponses::Authenticated(connection_response)).await?;
146
147
Ok(client_id)
148
}
0 commit comments