[#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 3 deletions

1
go.mod
View file

@ -3,7 +3,6 @@ module github.com/nspcc-dev/neofs-node
go 1.14
require (
code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48
github.com/golang/protobuf v1.4.3
github.com/google/uuid v1.1.1
github.com/hashicorp/golang-lru v0.5.4

BIN
go.sum

Binary file not shown.

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 {