From d4905fe4cc58d8fb80a82a6befa2f6e341d133d3 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Tue, 22 Feb 2022 23:24:29 +0000 Subject: [PATCH] Reset authenticated channels during batch add --- cmd/ud.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/ud.go b/cmd/ud.go index ba6445c30..a2e2b8614 100644 --- a/cmd/ud.go +++ b/cmd/ud.go @@ -11,6 +11,8 @@ package cmd import ( "encoding/json" "fmt" + "time" + "github.com/spf13/cobra" jww "github.com/spf13/jwalterweatherman" "github.com/spf13/viper" @@ -22,7 +24,6 @@ import ( "gitlab.com/elixxir/primitives/fact" "gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/utils" - "time" ) // udCmd is the user discovery subcommand, which allows for user lookup, @@ -187,7 +188,7 @@ var udCmd = &cobra.Command{ jww.INFO.Printf("BATCHADD: contact %s", newContact) - addAuthenticatedChannel(client, newContact.ID, newContact) + resetAuthenticatedChannel(client, newContact.ID, newContact) } userDiscoveryMgr.BatchLookup(idList, cb, 90*time.Second) -- GitLab