[#615] blobovnicza: Simplify byte size stringer

Make `stringifyByteSize` to return number of bytes as string.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-16 11:58:38 +03:00 committed by Leonard Lyubich
parent 08b5f29e16
commit cc81723b01
3 changed files with 2 additions and 5 deletions

View file

@ -3,8 +3,8 @@ package blobovnicza
import (
"encoding/binary"
"fmt"
"strconv"
"code.cloudfoundry.org/bytefmt"
"go.etcd.io/bbolt"
)
@ -18,7 +18,7 @@ func stringifyBounds(lower, upper uint64) string {
}
func stringifyByteSize(sz uint64) string {
return bytefmt.ByteSize(sz)
return strconv.FormatUint(sz, 10)
}
func bucketKeyFromBounds(upperBound uint64) []byte {