mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 11:57:51 +00:00
Unexport test.Field.Close
This commit is contained in:
parent
39504f8ded
commit
9ddb881bed
1 changed files with 3 additions and 3 deletions
|
|
@ -49,8 +49,8 @@ func MustOpenField(opts pilosa.FieldOption) *Field {
|
|||
return f
|
||||
}
|
||||
|
||||
// Close closes the field and removes the underlying data.
|
||||
func (f *Field) Close() error {
|
||||
// close closes the field and removes the underlying data.
|
||||
func (f *Field) close() error {
|
||||
defer os.RemoveAll(f.Path())
|
||||
return f.Field.Close()
|
||||
}
|
||||
|
|
@ -77,7 +77,7 @@ func (f *Field) Reopen() error {
|
|||
// Ensure field can set its cache
|
||||
func TestField_SetCacheSize(t *testing.T) {
|
||||
f := MustOpenField(pilosa.OptFieldTypeDefault())
|
||||
defer f.Close()
|
||||
defer f.close()
|
||||
cacheSize := uint32(100)
|
||||
|
||||
// Set & retrieve field cache size.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue