aquatic_ws: add ErrorResponse, send it when info hash is not allowed

This commit is contained in:
Joakim Frostegård 2021-10-16 01:18:23 +02:00
parent 28cc6c261a
commit 1d5eb0dff9
5 changed files with 43 additions and 4 deletions

View file

@ -12,6 +12,7 @@ pub struct Statistics {
pub responses_offer: AtomicUsize,
pub responses_answer: AtomicUsize,
pub responses_scrape: AtomicUsize,
pub responses_error: AtomicUsize,
}
#[derive(Clone)]