Skip to content
Snippets Groups Projects
Commit 9d9ff937 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

Merge branch 'benger-hotfix/groupNotification-patch-93471' into 'hotfix/groupNotification'

remved registration checks on ud search and lookup

See merge request !58
parents 58497924 b2cd9748
No related branches found
No related tags found
3 merge requests!67Release,!58remved registration checks on ud search and lookup,!55fully implemented trial hashing of identity fingerprints. Needs tests.
......@@ -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()}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment