mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
Unexport Field.Logger
This commit is contained in:
parent
3faa51544a
commit
5d7cb33322
2 changed files with 4 additions and 4 deletions
6
field.go
6
field.go
|
|
@ -72,7 +72,7 @@ type Field struct {
|
|||
|
||||
bsiGroups []*bsiGroup
|
||||
|
||||
Logger Logger
|
||||
logger Logger
|
||||
}
|
||||
|
||||
// FieldOption is a functional option type for pilosa.fieldOptions.
|
||||
|
|
@ -166,7 +166,7 @@ func NewField(path, index, name string, opts FieldOption) (*Field, error) {
|
|||
|
||||
options: applyDefaultOptions(fo),
|
||||
|
||||
Logger: NopLogger,
|
||||
logger: NopLogger,
|
||||
}
|
||||
return f, nil
|
||||
}
|
||||
|
|
@ -660,7 +660,7 @@ func (f *Field) createViewIfNotExistsBase(name string) (*view, bool, error) {
|
|||
func (f *Field) newView(path, name string) *view {
|
||||
view := newView(path, f.index, f.name, name, f.options.CacheSize)
|
||||
view.cacheType = f.options.CacheType
|
||||
view.logger = f.Logger
|
||||
view.logger = f.logger
|
||||
view.rowAttrStore = f.rowAttrStore
|
||||
view.stats = f.Stats.WithTags(fmt.Sprintf("view:%s", name))
|
||||
view.broadcaster = f.broadcaster
|
||||
|
|
|
|||
2
index.go
2
index.go
|
|
@ -363,7 +363,7 @@ func (i *Index) newField(path, name string) (*Field, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
f.Logger = i.logger
|
||||
f.logger = i.logger
|
||||
f.Stats = i.Stats.WithTags(fmt.Sprintf("field:%s", name))
|
||||
f.broadcaster = i.broadcaster
|
||||
f.rowAttrStore = i.newAttrStore(filepath.Join(f.path, ".data"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue