Initial commit (code only without large binaries)
This commit is contained in:
17
EdgeNode/internal/utils/bfs/blocks_file_options.go
Normal file
17
EdgeNode/internal/utils/bfs/blocks_file_options.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package bfs
|
||||
|
||||
type BlockFileOptions struct {
|
||||
BytesPerSync int64
|
||||
}
|
||||
|
||||
func (this *BlockFileOptions) EnsureDefaults() {
|
||||
if this.BytesPerSync <= 0 {
|
||||
this.BytesPerSync = 1 << 20
|
||||
}
|
||||
}
|
||||
|
||||
var DefaultBlockFileOptions = &BlockFileOptions{
|
||||
BytesPerSync: 1 << 20,
|
||||
}
|
||||
Reference in New Issue
Block a user