Switch UI to display statuses better

This commit is contained in:
Igor Katson 2023-11-24 15:36:37 +00:00
parent 876afbf41b
commit 66d2f224ed
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
7 changed files with 80 additions and 26 deletions

View file

@ -4,7 +4,7 @@ use tracing::{debug, info};
use crate::type_aliases::BF;
pub(crate) struct ChunkTracker {
pub struct ChunkTracker {
// This forms the basis of a "queue" to pull from.
// It's set to 1 if we need a piece, but the moment we start requesting a peer,
// it's set to 0.
@ -51,7 +51,7 @@ fn compute_chunk_status(lengths: &Lengths, needed_pieces: &BF) -> BF {
chunk_bf
}
pub(crate) enum ChunkMarkingResult {
pub enum ChunkMarkingResult {
PreviouslyCompleted,
NotCompleted,
Completed,