mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp protocol: rename "write" and "from_bytes" methods
This commit is contained in:
parent
f30ab82371
commit
1c59972834
9 changed files with 27 additions and 27 deletions
|
|
@ -198,7 +198,7 @@ impl SocketWorker {
|
|||
}
|
||||
|
||||
let src = CanonicalSocketAddr::new(src);
|
||||
let request_parsable = match Request::from_bytes(
|
||||
let request_parsable = match Request::parse_bytes(
|
||||
&self.buffer[..bytes_read],
|
||||
self.config.protocol.max_scrape_torrents,
|
||||
) {
|
||||
|
|
@ -431,7 +431,7 @@ impl SocketWorker {
|
|||
) {
|
||||
let mut buffer = Cursor::new(&mut buffer[..]);
|
||||
|
||||
if let Err(err) = response.write(&mut buffer) {
|
||||
if let Err(err) = response.write_bytes(&mut buffer) {
|
||||
::log::error!("failed writing response to buffer: {:#}", err);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue