mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
http: use CompactString in AnnounceRequest, ignore key in tracker
This commit is contained in:
parent
2fa1a046d7
commit
1afe45c6f6
5 changed files with 29 additions and 26 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::io::Write;
|
||||
|
||||
use anyhow::Context;
|
||||
use smartstring::{LazyCompact, SmartString};
|
||||
use compact_str::CompactString;
|
||||
|
||||
use super::common::*;
|
||||
use super::utils::*;
|
||||
|
|
@ -17,7 +17,7 @@ pub struct AnnounceRequest {
|
|||
pub event: AnnounceEvent,
|
||||
/// Number of response peers wanted
|
||||
pub numwant: Option<usize>,
|
||||
pub key: Option<SmartString<LazyCompact>>,
|
||||
pub key: Option<CompactString>,
|
||||
}
|
||||
|
||||
impl AnnounceRequest {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue