Skip to content

Commit

Permalink
Merge pull request #139 from mhaitjema/fix-storage-builder-opts
Browse files Browse the repository at this point in the history
Fix passing opts to LevelDB in BuilderWithOptions
  • Loading branch information
db7 committed Aug 3, 2018
2 parents 72893df + b513728 commit 4ff4aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func DefaultBuilder(path string) Builder {
func BuilderWithOptions(path string, opts *opt.Options) Builder {
return func(topic string, partition int32) (Storage, error) {
fp := filepath.Join(path, fmt.Sprintf("%s.%d", topic, partition))
db, err := leveldb.OpenFile(fp, nil)
db, err := leveldb.OpenFile(fp, opts)
if err != nil {
return nil, fmt.Errorf("error opening leveldb: %v", err)
}
Expand Down

0 comments on commit 4ff4aea

Please sign in to comment.