[#43] cmd/neofs-node: Implement mocked max object size source

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-23 16:35:40 +03:00 committed by Alex Vanin
parent 8dced272d2
commit a5ae128f34

View file

@ -22,6 +22,14 @@ type inMemBucket struct {
items map[string][]byte items map[string][]byte
} }
type maxSzSrc struct {
v uint64
}
func (s *maxSzSrc) MaxObjectSize() uint64 {
return s.v
}
func newBucket() bucket.Bucket { func newBucket() bucket.Bucket {
return &inMemBucket{ return &inMemBucket{
RWMutex: new(sync.RWMutex), RWMutex: new(sync.RWMutex),