chore(deps): bump github.com/blevesearch/bleve/v2 from 2.4.2 to 2.4.3
Bumps [github.com/blevesearch/bleve/v2](https://github.com/blevesearch/bleve) from 2.4.2 to 2.4.3. - [Release notes](https://github.com/blevesearch/bleve/releases) - [Commits](https://github.com/blevesearch/bleve/compare/v2.4.2...v2.4.3) --- updated-dependencies: - dependency-name: github.com/blevesearch/bleve/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
926bc8e22a
commit
1104846219
+3
-4
@@ -19,7 +19,6 @@ import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/golang/snappy"
|
||||
)
|
||||
@@ -37,7 +36,7 @@ var (
|
||||
)
|
||||
|
||||
type chunkedContentCoder struct {
|
||||
bytesWritten uint64 // atomic access to this variable, moved to top to correct alignment issues on ARM, 386 and 32-bit MIPS.
|
||||
bytesWritten uint64 // moved to top to correct alignment issues on ARM, 386 and 32-bit MIPS.
|
||||
|
||||
final []byte
|
||||
chunkSize uint64
|
||||
@@ -112,11 +111,11 @@ func (c *chunkedContentCoder) Close() error {
|
||||
}
|
||||
|
||||
func (c *chunkedContentCoder) incrementBytesWritten(val uint64) {
|
||||
atomic.AddUint64(&c.bytesWritten, val)
|
||||
c.bytesWritten += val
|
||||
}
|
||||
|
||||
func (c *chunkedContentCoder) getBytesWritten() uint64 {
|
||||
return atomic.LoadUint64(&c.bytesWritten)
|
||||
return c.bytesWritten
|
||||
}
|
||||
|
||||
func (c *chunkedContentCoder) flushContents() error {
|
||||
|
||||
Reference in New Issue
Block a user