diff --git a/ud/lookup.go b/ud/lookup.go index c5d8b4dd96757ec69b52e629ad69c131b92ed7aa..2dc2dd2a8724227423df2ff028809746aa49cc8f 100644 --- a/ud/lookup.go +++ b/ud/lookup.go @@ -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()} diff --git a/ud/search.go b/ud/search.go index 83f33901ca97938c4d74966f11d3909fdd227061..e8db5749ace91b445f56b7f71ace9c8b5165b886 100644 --- a/ud/search.go +++ b/ud/search.go @@ -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)