mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
remove redundant parentheses (#9134)
Signed-off-by: jinglina <jinglinax@163.com>
This commit is contained in:
parent
c4f2e9eec5
commit
1a430e5f89
|
@ -95,7 +95,7 @@ func (b *bstream) writeByte(byt byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *bstream) writeBits(u uint64, nbits int) {
|
func (b *bstream) writeBits(u uint64, nbits int) {
|
||||||
u <<= (64 - uint(nbits))
|
u <<= 64 - uint(nbits)
|
||||||
for nbits >= 8 {
|
for nbits >= 8 {
|
||||||
byt := byte(u >> 56)
|
byt := byte(u >> 56)
|
||||||
b.writeByte(byt)
|
b.writeByte(byt)
|
||||||
|
|
|
@ -386,7 +386,7 @@ func (cdm *ChunkDiskMapper) cut() (returnErr error) {
|
||||||
cdm.readPathMtx.Unlock()
|
cdm.readPathMtx.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), int(MaxHeadChunkFileSize))
|
mmapFile, err := fileutil.OpenMmapFileWithSize(newFile.Name(), MaxHeadChunkFileSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue