mirror of
https://github.com/fluencelabs/aqua-lib
synced 2024-12-04 23:30:22 +00:00
kad merge: document default count = 20 (#10)
This commit is contained in:
parent
fde133e750
commit
049e761810
@ -11,7 +11,7 @@ alias Hash : string
|
||||
-- There are two types of dependencies: named and by-hash.
|
||||
-- name:foobar – specifies dependency by module name, points to a module with import name 'foobar'
|
||||
-- hash:04dc884... – specifies dependency by module hash
|
||||
-- By-hash dependencies are preffered since they are deteremenistic
|
||||
-- By-hash dependencies are preffered since they are determenistic
|
||||
-- while by-name dependency can yield different modules at different points in time
|
||||
alias Dependency : string
|
||||
|
||||
@ -127,7 +127,7 @@ service Kademlia("kad"):
|
||||
-- target – base58 string; result is sorted by XOR distance to target
|
||||
-- left – list of base58 strings
|
||||
-- right – list of base58 strings
|
||||
-- count – how many items to return, unlimited by default
|
||||
-- count – how many items to return; default 20
|
||||
-- Returns: list of base58 strings sorted by distance to target; list will contain at most count elements
|
||||
merge(target: Base58String, left: []string, right: []string, count: ?u32) -> []string
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user