Make progress type field name less ambiguous
This commit is contained in:
parent
97434feb55
commit
262d37ca75
@ -50,7 +50,7 @@ const (
|
|||||||
|
|
||||||
// Progress from a sub-task of prune
|
// Progress from a sub-task of prune
|
||||||
type PruneProgress struct {
|
type PruneProgress struct {
|
||||||
Type PruneProgressType
|
ProgressType PruneProgressType
|
||||||
Count int // Number of items done
|
Count int // Number of items done
|
||||||
}
|
}
|
||||||
type PruneProgressChan chan PruneProgress
|
type PruneProgressChan chan PruneProgress
|
||||||
@ -220,7 +220,7 @@ func pruneTaskDisplayProgress(progressChan PruneProgressChan, waitg *sync.WaitGr
|
|||||||
verifyCount := 0
|
verifyCount := 0
|
||||||
var msg string
|
var msg string
|
||||||
for p := range progressChan {
|
for p := range progressChan {
|
||||||
switch p.Type {
|
switch p.ProgressType {
|
||||||
case PruneProgressTypeLocal:
|
case PruneProgressTypeLocal:
|
||||||
localCount++
|
localCount++
|
||||||
case PruneProgressTypeRetain:
|
case PruneProgressTypeRetain:
|
||||||
|
Loading…
Reference in New Issue
Block a user