mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
BitArray takes a pointer receiver. More logging
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user