http: use CompactString in AnnounceRequest, ignore key in tracker

This commit is contained in:
Joakim Frostegård 2023-02-25 22:51:25 +01:00
parent 2fa1a046d7
commit 1afe45c6f6
5 changed files with 29 additions and 26 deletions

View file

@ -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 {