Skip to content
Snippets Groups Projects
Commit 8a8e4a40 authored by Jake Taylor's avatar Jake Taylor
Browse files

reduce ud timeouts in command line

parent 59b65fca
No related branches found
No related tags found
1 merge request!170Release
...@@ -146,16 +146,16 @@ var udCmd = &cobra.Command{ ...@@ -146,16 +146,16 @@ var udCmd = &cobra.Command{
err = userDiscoveryMgr.Lookup(lookupID, err = userDiscoveryMgr.Lookup(lookupID,
func(newContact contact.Contact, err error) { func(newContact contact.Contact, err error) {
if err != nil { if err != nil {
jww.FATAL.Panicf("%+v", err) jww.FATAL.Panicf("UserDiscovery Lookup error: %+v", err)
} }
printContact(newContact) printContact(newContact)
}, 90*time.Second) }, 30*time.Second)
if err != nil { if err != nil {
jww.WARN.Printf("Failed UD lookup: %+v", err) jww.WARN.Printf("Failed UD lookup: %+v", err)
} }
time.Sleep(91 * time.Second) time.Sleep(31 * time.Second)
} }
usernameSearchStr := viper.GetString("searchusername") usernameSearchStr := viper.GetString("searchusername")
......
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