-
Notifications
You must be signed in to change notification settings - Fork 256
chore: update rust toolchain, migrate to 2024 edition #3535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
76d0a35
c7266f8
01af654
ff6cdea
8e253d7
cd16809
fdb55de
543b372
500f33a
71f66d3
5788435
ad37d83
272b30b
dc3b82e
62e7ae5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -527,11 +527,10 @@ where | |
// Wait for solutions and transform proposed proof of space solutions into | ||
// data structure `sc-consensus-subspace` expects | ||
let forward_signature_fut = async move { | ||
if let Ok(reward_signature) = response_receiver.await { | ||
if let Some(signature) = reward_signature.signature { | ||
if let Ok(reward_signature) = response_receiver.await | ||
&& let Some(signature) = reward_signature.signature { | ||
let _ = signature_sender.unbounded_send(signature); | ||
} | ||
} | ||
}; | ||
|
||
// Run above future with timeout | ||
|
@@ -576,11 +575,10 @@ where | |
// multiple (https://github.com/paritytech/jsonrpsee/issues/452) | ||
let mut reward_signature_senders = reward_signature_senders.lock(); | ||
|
||
if reward_signature_senders.current_hash == reward_signature.hash.into() { | ||
if let Some(mut sender) = reward_signature_senders.senders.pop() { | ||
if reward_signature_senders.current_hash == reward_signature.hash.into() | ||
&& let Some(mut sender) = reward_signature_senders.senders.pop() { | ||
let _ = sender.send(reward_signature); | ||
} | ||
} | ||
|
||
Ok(()) | ||
} | ||
|
@@ -702,13 +700,11 @@ where | |
.flatten() | ||
}; | ||
|
||
if let Some(sender) = maybe_sender { | ||
if let Err(error) = sender.unbounded_send(()) { | ||
if !error.is_closed() { | ||
if let Some(sender) = maybe_sender | ||
&& let Err(error) = sender.unbounded_send(()) | ||
&& !error.is_closed() { | ||
warn!("Failed to acknowledge archived segment: {error}"); | ||
} | ||
} | ||
} | ||
|
||
debug!(%segment_index, "Acknowledged archived segment."); | ||
|
||
|
@@ -806,8 +802,7 @@ where | |
); | ||
|
||
return Err(Error::StringError(format!( | ||
"Request limit ({}) exceed the server limit: {} ", | ||
limit, MAX_SEGMENT_HEADERS_PER_REQUEST | ||
"Request limit ({limit}) exceed the server limit: {MAX_SEGMENT_HEADERS_PER_REQUEST} " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't need to be fixed in this PR, but there's an odd extra space at the end of this log message. A search and replace could fix them all at once. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I found more than one. After merging this pull request, I will submit a separate pull request to fix them. |
||
))); | ||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command can be simplified to:
I couldn't automatically compile/fix
cuda
orx86_64/aes
because I don't have the OS/hardware, so I reviewed them manually instead.