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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
support/v0.27
Leonard Lyubich 2020-09-23 16:35:40 +03:00 committed by Alex Vanin
parent 8dced272d2
commit a5ae128f34
1 changed files with 8 additions and 0 deletions

View File

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