Unexport NewDefaultConfig (not useful for public consumption)

This commit is contained in:
James Mills 2019-03-20 07:46:26 +10:00
parent d8a48f9eea
commit 2d9bfbb408
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 2 additions and 2 deletions

@ -354,7 +354,7 @@ func Open(path string, options ...option) (*Bitcask, error) {
bitcask := &Bitcask{
Flock: flock.New(filepath.Join(path, "lock")),
config: NewDefaultConfig(),
config: newDefaultConfig(),
path: path,
curr: curr,
keydir: keydir,

@ -17,7 +17,7 @@ type config struct {
MaxValueSize int
}
func NewDefaultConfig() *config {
func newDefaultConfig() *config {
return &config{
MaxDatafileSize: DefaultMaxDatafileSize,
MaxKeySize: DefaultMaxKeySize,