mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 15:30:55 +00:00
fix(core): remove unused payload parameter in channel
[no changelog]
This commit is contained in:
parent
8121c7073e
commit
0eeb66210a
@ -408,7 +408,7 @@ class Channel:
|
|||||||
session_id,
|
session_id,
|
||||||
)
|
)
|
||||||
self.set_channel_state(ChannelState.INVALIDATED)
|
self.set_channel_state(ChannelState.INVALIDATED)
|
||||||
task = self._write_and_encrypt(buffer, noise_payload_len, force)
|
task = self._write_and_encrypt(noise_payload_len, force)
|
||||||
if task is not None:
|
if task is not None:
|
||||||
await task
|
await task
|
||||||
|
|
||||||
@ -425,7 +425,7 @@ class Channel:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _write_and_encrypt(
|
def _write_and_encrypt(
|
||||||
self, payload: bytes, noise_payload_len: int, force: bool = False
|
self, noise_payload_len: int, force: bool = False
|
||||||
) -> Awaitable[None] | None:
|
) -> Awaitable[None] | None:
|
||||||
buffer = memory_manager.get_existing_write_buffer(self.get_channel_id_int())
|
buffer = memory_manager.get_existing_write_buffer(self.get_channel_id_int())
|
||||||
# if buffer is WireBufferError:
|
# if buffer is WireBufferError:
|
||||||
|
Loading…
Reference in New Issue
Block a user