[#43] cmd/neofs-node: Implement mocked max object size source
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8dced272d2
commit
a5ae128f34
1 changed files with 8 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue