From 8a8e4a40ad0e693ea858da9a83430913c898e636 Mon Sep 17 00:00:00 2001 From: Jake Taylor <jake@elixxir.io> Date: Mon, 21 Feb 2022 12:39:39 -0600 Subject: [PATCH] reduce ud timeouts in command line --- cmd/ud.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ud.go b/cmd/ud.go index f334918ba..0d12d9a80 100644 --- a/cmd/ud.go +++ b/cmd/ud.go @@ -146,16 +146,16 @@ var udCmd = &cobra.Command{ err = userDiscoveryMgr.Lookup(lookupID, func(newContact contact.Contact, err error) { if err != nil { - jww.FATAL.Panicf("%+v", err) + jww.FATAL.Panicf("UserDiscovery Lookup error: %+v", err) } printContact(newContact) - }, 90*time.Second) + }, 30*time.Second) if err != nil { jww.WARN.Printf("Failed UD lookup: %+v", err) } - time.Sleep(91 * time.Second) + time.Sleep(31 * time.Second) } usernameSearchStr := viper.GetString("searchusername") -- GitLab