mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
bittorrent_udp: response_to_bytes: return Result<(), io:Error>
This commit is contained in:
parent
054d36b316
commit
9bf17b0ab4
5 changed files with 28 additions and 32 deletions
|
|
@ -209,7 +209,7 @@ fn handle_readable_socket(
|
|||
for (response, src) in responses.drain(..) {
|
||||
cursor.set_position(0);
|
||||
|
||||
response_to_bytes(&mut cursor, response, IpVersion::IPv4);
|
||||
response_to_bytes(&mut cursor, response, IpVersion::IPv4).unwrap();
|
||||
|
||||
let amt = cursor.position() as usize;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue