File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ where
279
279
{
280
280
let password = md5_hash_password ( user, password, salt) ;
281
281
282
- let mut message = BytesMut :: with_capacity ( password. len ( ) + 5 ) ;
282
+ let mut message = BytesMut :: with_capacity ( password. len ( ) as usize + 5 ) ;
283
283
284
284
message. put_u8 ( b'p' ) ;
285
285
message. put_i32 ( password. len ( ) as i32 + 4 ) ;
@@ -293,7 +293,7 @@ where
293
293
S : tokio:: io:: AsyncWrite + std:: marker:: Unpin ,
294
294
{
295
295
let password = md5_hash_second_pass ( hash, salt) ;
296
- let mut message = BytesMut :: with_capacity ( password. len ( ) + 5 ) ;
296
+ let mut message = BytesMut :: with_capacity ( password. len ( ) as usize + 5 ) ;
297
297
298
298
message. put_u8 ( b'p' ) ;
299
299
message. put_i32 ( password. len ( ) as i32 + 4 ) ;
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ impl MirroringManager {
137
137
bytes_rx,
138
138
disconnect_rx : exit_rx,
139
139
} ;
140
- exit_senders. push ( exit_tx) ;
141
- byte_senders. push ( bytes_tx) ;
140
+ exit_senders. push ( exit_tx. clone ( ) ) ;
141
+ byte_senders. push ( bytes_tx. clone ( ) ) ;
142
142
client. start ( ) ;
143
143
} ) ;
144
144
Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ impl ServerPool {
1041
1041
) -> ServerPool {
1042
1042
ServerPool {
1043
1043
address,
1044
- user,
1044
+ user : user . clone ( ) ,
1045
1045
database : database. to_string ( ) ,
1046
1046
client_server_map,
1047
1047
auth_hash,
Original file line number Diff line number Diff line change @@ -1476,7 +1476,7 @@ mod test {
1476
1476
} ;
1477
1477
1478
1478
let mut qr = QueryRouter :: new ( ) ;
1479
- qr. update_pool_settings ( pool_settings) ;
1479
+ qr. update_pool_settings ( pool_settings. clone ( ) ) ;
1480
1480
1481
1481
// Shard should start out unset
1482
1482
assert_eq ! ( qr. active_shard, None ) ;
You can’t perform that action at this time.
0 commit comments