diff options
Diffstat (limited to 'format/commitgraph/read/bloom.go')
| -rw-r--r-- | format/commitgraph/read/bloom.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/format/commitgraph/read/bloom.go b/format/commitgraph/read/bloom.go index 53d724f9..bf9dcbc6 100644 --- a/format/commitgraph/read/bloom.go +++ b/format/commitgraph/read/bloom.go @@ -8,6 +8,8 @@ import ( ) // HasBloom reports whether any layer has changed-path Bloom data. +// +// Labels: MT-Safe. func (reader *Reader) HasBloom() bool { for i := range reader.layers { layer := &reader.layers[i] @@ -20,6 +22,8 @@ func (reader *Reader) HasBloom() bool { } // BloomVersion returns the changed-path Bloom hash version, or 0 if absent. +// +// Labels: MT-Safe. func (reader *Reader) BloomVersion() uint8 { for i := len(reader.layers) - 1; i >= 0; i-- { layer := &reader.layers[i] @@ -43,7 +47,7 @@ func (reader *Reader) BloomVersion() uint8 { // // Returns BloomUnavailableError when this commit graph has no Bloom data. // -// Labels: Life-Parent. +// Labels: MT-Safe, Life-Parent. func (reader *Reader) BloomFilterAt(pos Position) (bloom.Filter, error) { layer, err := reader.layerByPosition(pos) if err != nil { |
