feat: customize index max depth

Because some driver's issue may cause infinite loop
This commit is contained in:
Noah Hsu
2023-01-17 17:33:18 +08:00
parent 9c7e451c03
commit 26fe0a7684
7 changed files with 19 additions and 21 deletions

View File

@ -30,8 +30,8 @@ func (D DB) Get(ctx context.Context, parent string) ([]model.SearchNode, error)
return db.GetSearchNodesByParent(parent)
}
func (D DB) Del(ctx context.Context, prefix string) error {
return db.DeleteSearchNodesByParent(prefix)
func (D DB) Del(ctx context.Context, path string) error {
return db.DeleteSearchNodesByParent(path)
}
func (D DB) Release(ctx context.Context) error {