From cc7d5da034b41d8d6853a0bd6e919ab62dbe221d Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Wed, 18 May 2022 20:53:57 +0000 Subject: [PATCH] Fix waitgroup --- api/user.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/user.go b/api/user.go index ca6523137..b1d9c2628 100644 --- a/api/user.go +++ b/api/user.go @@ -8,12 +8,13 @@ package api import ( - "gitlab.com/elixxir/crypto/diffieHellman" "regexp" "runtime" "strings" "sync" + "gitlab.com/elixxir/crypto/diffieHellman" + jww "github.com/spf13/jwalterweatherman" "gitlab.com/elixxir/client/storage/user" "gitlab.com/elixxir/crypto/cyclic" @@ -94,7 +95,7 @@ func createKeys(rng *fastRNG.StreamGenerator) ( transmissionRsaKey, receptionRsaKey *rsa.PrivateKey) { wg := sync.WaitGroup{} - wg.Add(1) + wg.Add(2) // RSA Keygen (4096 bit defaults) go func() { -- GitLab