Files
herolib/lib/data/vstor/factory.v
2024-12-25 09:23:31 +01:00

18 lines
446 B
V

module vstor
pub fn new() !VSTOR {
mut spread := ZDBCurrentSpread{
// spread:[]u32{}
parts: 3 // nr of parts data needs to be cut in e.g. 16
parity: 2 // size of parity e.g. 4
last_check: 0 // 0 means not checked yet
slice_size_kb: 1024 * 4 // default 4 MB
compression_type: .nothing
encryption_type: .nothing
}
mut vstor := VSTOR{
current_spread: spread
}
return vstor
}