Browse Source

remove redundant parentheses (#9134)

Signed-off-by: jinglina <jinglinax@163.com>
pull/9133/head
jinglina 3 years ago committed by GitHub
parent
commit
1a430e5f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tsdb/chunkenc/bstream.go
  2. 2
      tsdb/chunks/head_chunks.go

2
tsdb/chunkenc/bstream.go

@ -95,7 +95,7 @@ func (b *bstream) writeByte(byt byte) {
}
func (b *bstream) writeBits(u uint64, nbits int) {
u <<= (64 - uint(nbits))
u <<= 64 - uint(nbits)
for nbits >= 8 {
byt := byte(u >> 56)
b.writeByte(byt)

2
tsdb/chunks/head_chunks.go

@ -386,7 +386,7 @@ func (cdm *ChunkDiskMapper) cut() (returnErr error) {
cdm.readPathMtx.Unlock()
}
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), int(MaxHeadChunkFileSize))
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), MaxHeadChunkFileSize)
if err != nil {
return err
}

Loading…
Cancel
Save