[#421] Try using badger for the write-cache
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
65c72f3e0b
commit
1a0cb0f34a
56 changed files with 2234 additions and 747 deletions
|
@ -20,6 +20,12 @@ func GenerateObject() *objectSDK.Object {
|
|||
return GenerateObjectWithCID(cidtest.ID())
|
||||
}
|
||||
|
||||
func GenerateObjectWithSize(sz int) *objectSDK.Object {
|
||||
data := make([]byte, sz)
|
||||
_, _ = rand.Read(data)
|
||||
return GenerateObjectWithCIDWithPayload(cidtest.ID(), data)
|
||||
}
|
||||
|
||||
func GenerateObjectWithCID(cnr cid.ID) *objectSDK.Object {
|
||||
data := make([]byte, defaultDataSize)
|
||||
_, _ = rand.Read(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue