forked from TrueCloudLab/frostfs-node
[#43] cmd/neofs-node: Implement mocked max object size source
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>support/v0.27
parent
8dced272d2
commit
a5ae128f34
|
@ -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 New Issue