this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

some comments

+5
+5
mst/mst.go
··· 936 936 // WalkLeavesFrom walks the leaves of the tree, calling the cb callback on each 937 937 // key that's greater than or equal to the provided from key. 938 938 // If cb returns an error, the walk is aborted and the error is returned. 939 + // NB: this method caches the tree structure in memory to make subsequent tree 940 + // operations significantly faster 939 941 func (mst *MerkleSearchTree) WalkLeavesFrom(ctx context.Context, from string, cb func(key string, val cid.Cid) error) error { 940 942 return mst.walkLeavesFrom(ctx, from, false, cb) 941 943 } 942 944 945 + // WalkLeavesFromNocache works the same as WalkLeavesFrom but does not cache 946 + // internal tree structure, intended for "once through" passes of MSTs, 947 + // especially in streaming contexts 943 948 func (mst *MerkleSearchTree) WalkLeavesFromNocache(ctx context.Context, from string, cb func(key string, val cid.Cid) error) error { 944 949 return mst.walkLeavesFrom(ctx, from, true, cb) 945 950 }