Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp/lighthorizon/build/index-batch: merge map/reduce updates to latest on feature branch #4543

Merged
merged 11 commits into from
Aug 17, 2022
Merged
Prev Previous commit
Next Next commit
#4475: added docs on file backend method, pr feedback
  • Loading branch information
sreuland committed Aug 17, 2022
commit 2329f3c18ddf25d2a4270fbe34d874a0c5d6085b
2 changes: 2 additions & 0 deletions exp/lighthorizon/index/backend/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type FileBackend struct {
parallel uint32
}

// NewFileBackend connects to indices stored at `dir`, creating the directory if one doesn't
// exist, and uses `parallel` to control how many workers to use when flushing to disk.
func NewFileBackend(dir string, parallel uint32) (*FileBackend, error) {
if parallel <= 0 {
parallel = 1
Expand Down