mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -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) {
|
||||
u <<= (64 - uint(nbits))
|
||||
u <<= 64 - uint(nbits)
|
||||
for nbits >= 8 {
|
||||
byt := byte(u >> 56)
|
||||
b.writeByte(byt)
|
||||
|
|
|
@ -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…
Reference in a new issue