Commit 420f152 1 parent 6082d8b commit 420f152 Copy full SHA for 420f152
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ pub async fn test_file_rust2rust_deprecated() -> eyre::Result<()> {
183
183
. name ( "sender" . to_owned ( ) )
184
184
. spawn ( async {
185
185
let ( welcome, wormhole_future) =
186
- Wormhole :: connect_without_code ( transfer:: APP_CONFIG . id ( TEST_APPID ) . clone ( ) , 2 ) . await ?;
186
+ Wormhole :: connect_without_code ( transfer:: APP_CONFIG . id ( TEST_APPID ) . clone ( ) , 2 )
187
+ . await ?;
187
188
if let Some ( welcome) = & welcome. welcome {
188
189
log:: info!( "Got welcome: {}" , welcome) ;
189
190
}
@@ -258,7 +259,8 @@ pub async fn test_file_rust2rust() -> eyre::Result<()> {
258
259
. name ( "sender" . to_owned ( ) )
259
260
. spawn ( async {
260
261
let mailbox_connection =
261
- MailboxConnection :: create ( transfer:: APP_CONFIG . id ( TEST_APPID ) . clone ( ) , 2 ) . await ?;
262
+ MailboxConnection :: create ( transfer:: APP_CONFIG . id ( TEST_APPID ) . clone ( ) , 2 )
263
+ . await ?;
262
264
if let Some ( welcome) = & mailbox_connection. welcome {
263
265
log:: info!( "Got welcome: {}" , welcome) ;
264
266
}
Original file line number Diff line number Diff line change @@ -581,8 +581,7 @@ pub async fn send_records<'a>(
581
581
582
582
let mut hasher = Sha256 :: default ( ) ;
583
583
584
- // Yeah, maybe don't allocate 4kiB on the stack…
585
- let mut plaintext = Box :: new ( [ 0u8 ; 4096 ] ) ;
584
+ let mut plaintext = vec ! [ 0u8 ; 16 * 1024 ] . into_boxed_slice ( ) ;
586
585
let mut sent_size = 0 ;
587
586
futures:: pin_mut!( files) ;
588
587
while let Some ( mut file) = files. next ( ) . await . transpose ( ) ? {
You can’t perform that action at this time.
0 commit comments