BitArray takes a pointer receiver. More logging

This commit is contained in:
Jae Kwon
2015-05-05 22:53:06 -07:00
parent 44076e816d
commit da73e001ad
6 changed files with 59 additions and 55 deletions

View File

@ -97,7 +97,7 @@ type PartSet struct {
mtx sync.Mutex
parts []*Part
partsBitArray BitArray
partsBitArray *BitArray
count uint
}
@ -162,7 +162,7 @@ func (ps *PartSet) HasHeader(header PartSetHeader) bool {
}
}
func (ps *PartSet) BitArray() BitArray {
func (ps *PartSet) BitArray() *BitArray {
ps.mtx.Lock()
defer ps.mtx.Unlock()
return ps.partsBitArray.Copy()