Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
e93a305c
Commit
e93a305c
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Clean up API
parent
a282548a
No related branches found
No related tags found
2 merge requests
!510
Release
,
!395
Add debug for multilookup bindings bug
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/ud.go
+2
-0
2 additions, 0 deletions
bindings/ud.go
ud/lookup.go
+0
-24
0 additions, 24 deletions
ud/lookup.go
with
2 additions
and
24 deletions
bindings/ud.go
+
2
−
0
View file @
e93a305c
...
...
@@ -490,6 +490,8 @@ func MultiLookupUD(e2eID int, udContact []byte, cb UdMultiLookupCallback,
return
err
}
jww
.
INFO
.
Printf
(
"ud.MultiLookupUD(%s, %s)"
,
idList
,
p
.
Timeout
)
respCh
:=
make
(
chan
lookupResp
,
len
(
idList
))
for
_
,
uid
:=
range
idList
{
callback
:=
func
(
c
contact
.
Contact
,
err
error
)
{
...
...
This diff is collapsed.
Click to expand it.
ud/lookup.go
+
0
−
24
View file @
e93a305c
...
...
@@ -44,30 +44,6 @@ func Lookup(user udE2e,
return
lookup
(
net
,
rng
,
uid
,
grp
,
udContact
,
callback
,
p
)
}
// BatchLookup performs a Lookup operation on a list of user IDs.
// The lookup performs a callback on each lookup on the returned contact object
// constructed from the response.
func
BatchLookup
(
udContact
contact
.
Contact
,
net
udCmix
,
callback
lookupCallback
,
rng
csprng
.
Source
,
uids
[]
*
id
.
ID
,
grp
*
cyclic
.
Group
,
p
single
.
RequestParams
)
{
jww
.
INFO
.
Printf
(
"ud.BatchLookup(%s, %s)"
,
uids
,
p
.
Timeout
)
for
_
,
uid
:=
range
uids
{
go
func
(
localUid
*
id
.
ID
)
{
_
,
_
,
err
:=
lookup
(
net
,
rng
,
localUid
,
grp
,
udContact
,
callback
,
p
)
if
err
!=
nil
{
jww
.
WARN
.
Printf
(
"Failed batch lookup on user %s: %v"
,
localUid
,
err
)
}
}(
uid
)
}
return
}
// lookup is a helper function which sends a lookup request to the user discovery
// service. It will construct a contact object off of the returned public key.
// The callback will be called on that contact object.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment