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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
b2cd9748
Commit
b2cd9748
authored
Oct 21, 2021
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
remved registration checks on ud search and lookup
parent
58497924
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!67
Release
,
!58
remved registration checks on ud search and lookup
,
!55
fully implemented trial hashing of identity fingerprints. Needs tests.
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ud/lookup.go
+0
-3
0 additions, 3 deletions
ud/lookup.go
ud/search.go
+0
-3
0 additions, 3 deletions
ud/search.go
with
0 additions
and
6 deletions
ud/lookup.go
+
0
−
3
View file @
b2cd9748
...
...
@@ -23,9 +23,6 @@ type lookupCallback func(contact.Contact, error)
// system or returns by the timeout.
func
(
m
*
Manager
)
Lookup
(
uid
*
id
.
ID
,
callback
lookupCallback
,
timeout
time
.
Duration
)
error
{
jww
.
INFO
.
Printf
(
"ud.Lookup(%s, %s)"
,
uid
,
timeout
)
if
!
m
.
IsRegistered
()
{
return
errors
.
New
(
"Failed to lookup: client is not registered."
)
}
// Build the request and marshal it
request
:=
&
LookupSend
{
UserID
:
uid
.
Marshal
()}
...
...
This diff is collapsed.
Click to expand it.
ud/search.go
+
0
−
3
View file @
b2cd9748
...
...
@@ -28,9 +28,6 @@ type searchCallback func([]contact.Contact, error)
// of information is known.
func
(
m
*
Manager
)
Search
(
list
fact
.
FactList
,
callback
searchCallback
,
timeout
time
.
Duration
)
error
{
jww
.
INFO
.
Printf
(
"ud.Search(%s, %s)"
,
list
.
Stringify
(),
timeout
)
if
!
m
.
IsRegistered
()
{
return
errors
.
New
(
"Failed to search: client is not registered."
)
}
factHashes
,
factMap
:=
hashFactList
(
list
)
...
...
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