Remove sha1 extra features (#105)

Remove all extra sha1 features
This commit is contained in:
Igor Katson 2024-03-29 15:57:30 +00:00 committed by GitHub
parent 8e77f20a5a
commit 07bd9dec83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 11 additions and 112 deletions

View file

@ -72,7 +72,6 @@ use parking_lot::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
use peer_binary_protocol::{
extended::handshake::ExtendedHandshake, Handshake, Message, MessageOwned, Piece, Request,
};
use sha1w::Sha1;
use tokio::{
sync::{
mpsc::{unbounded_channel, UnboundedReceiver, UnboundedSender},
@ -492,7 +491,7 @@ impl TorrentStateLive {
pub fn peer_id(&self) -> Id20 {
self.meta.peer_id
}
pub(crate) fn file_ops(&self) -> FileOps<'_, Sha1> {
pub(crate) fn file_ops(&self) -> FileOps<'_> {
FileOps::new(&self.meta.info, &self.files, &self.lengths)
}
pub fn initially_needed(&self) -> u64 {