Switch UI to display statuses better
This commit is contained in:
parent
876afbf41b
commit
66d2f224ed
7 changed files with 80 additions and 26 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue