registry: optimize object marshaling #44
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ func NewObjSelector(registry *ObjRegistry, selectionSize int, filter *ObjFilter)
|
||||||
if selectionSize <= 0 {
|
if selectionSize <= 0 {
|
||||||
selectionSize = objectSelectCache
|
selectionSize = objectSelectCache
|
||||||
}
|
}
|
||||||
|
if filter == nil || filter.Status == "" {
|
||||||
|
panic("filtering without status is not supported")
|
||||||
|
}
|
||||||
objSelector := &ObjSelector{
|
objSelector := &ObjSelector{
|
||||||
ctx: registry.ctx,
|
ctx: registry.ctx,
|
||||||
boltDB: registry.boltDB,
|
boltDB: registry.boltDB,
|
||||||
|
|
Loading…
Reference in a new issue