This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export async function suggestAssociations(
7
7
limit ?: number
8
8
) : Promise < TNode [ ] > {
9
9
const beagle = Beagle . fromString ( phrase )
10
- const iter = storage . node . slice ( )
10
+ const iter = storage . node . iterate ( )
11
11
const suggested : TNode [ ] = [ ]
12
12
limit = limit ?? 8
13
13
// FIXME(akindyakov): This is a dirty hack to limit time of search by limiting
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const lookUpAndSuggestFor = lodash.debounce(
52
52
suggest : ( suggestResults : browser . Omnibox . SuggestResult [ ] ) => void
53
53
) : Promise < void > => {
54
54
const beagle = Beagle . fromString ( text )
55
- const iter = storage . node . slice ( )
55
+ const iter = storage . node . iterate ( )
56
56
const suggestions : browser . Omnibox . SuggestResult [ ] = [ ]
57
57
for (
58
58
let node = await iter . next ( ) ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export const SearchGrid = ({
76
76
} | null > ( null )
77
77
useEffect ( ( ) => {
78
78
setUpSearch ( {
79
- iter : storage . node . slice ( ) ,
79
+ iter : storage . node . iterate ( ) ,
80
80
beagle : Beagle . fromString ( q || undefined ) ,
81
81
} )
82
82
} , [ q ] )
Original file line number Diff line number Diff line change @@ -807,7 +807,7 @@ export function makeDatacenterStorageApi(): StorageApi {
807
807
getByOrigin : getNodesByOrigin ,
808
808
update : updateNode ,
809
809
create : createNode ,
810
- slice : ( ) => _getNodesSliceIter ( { } ) ,
810
+ iterate : ( ) => _getNodesSliceIter ( { } ) ,
811
811
delete : deleteNode ,
812
812
bulkDelete : bulkDeleteNodes ,
813
813
batch : {
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export type StorageApi = {
81
81
args : CreateNodeArgs ,
82
82
signal ?: AbortSignal
83
83
) => Promise < NewNodeResponse >
84
- slice : ( ) => INodeIterator
84
+ iterate : ( ) => INodeIterator
85
85
delete : ( {
86
86
nid,
87
87
signal,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function makeAlwaysThrowingStorageApi(): StorageApi {
17
17
getByOrigin : throwError ,
18
18
update : throwError ,
19
19
create : throwError ,
20
- slice : throwError ,
20
+ iterate : throwError ,
21
21
delete : throwError ,
22
22
bulkDelete : throwError ,
23
23
batch : {
You can’t perform that action at this time.
0 commit comments