diff --git a/api/user.go b/api/user.go index ca6523137a4b82dcfbda30adb014568f2508685d..b1d9c2628613154d5c60349a7d3b8f780bc0aa1c 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() {