First pass on fixes

This commit is contained in:
Piotr Osiewicz 2025-08-19 14:23:59 +02:00
parent 5826d89b97
commit 2f3be75fc7
269 changed files with 1593 additions and 2574 deletions

View file

@ -48,11 +48,10 @@ impl Notification {
let Some(Value::String(kind)) = value.remove(KIND) else {
unreachable!("kind is the enum tag")
};
if let map::Entry::Occupied(e) = value.entry(ENTITY_ID) {
if e.get().is_u64() {
if let map::Entry::Occupied(e) = value.entry(ENTITY_ID)
&& e.get().is_u64() {
entity_id = e.remove().as_u64();
}
}
proto::Notification {
kind,
entity_id,

View file

@ -520,11 +520,10 @@ impl Peer {
&response.payload
{
// Remove the transmitting end of the response channel to end the stream.
if let Some(channels) = stream_response_channels.upgrade() {
if let Some(channels) = channels.lock().as_mut() {
if let Some(channels) = stream_response_channels.upgrade()
&& let Some(channels) = channels.lock().as_mut() {
channels.remove(&message_id);
}
}
None
} else {
Some(