Skip to content
Snippets Groups Projects
Commit cc7d5da0 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix waitgroup

parent 2c5a2013
No related branches found
No related tags found
3 merge requests!510Release,!226WIP: Api2.0,!207WIP: Client Restructure
...@@ -8,12 +8,13 @@ ...@@ -8,12 +8,13 @@
package api package api
import ( import (
"gitlab.com/elixxir/crypto/diffieHellman"
"regexp" "regexp"
"runtime" "runtime"
"strings" "strings"
"sync" "sync"
"gitlab.com/elixxir/crypto/diffieHellman"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/storage/user" "gitlab.com/elixxir/client/storage/user"
"gitlab.com/elixxir/crypto/cyclic" "gitlab.com/elixxir/crypto/cyclic"
...@@ -94,7 +95,7 @@ func createKeys(rng *fastRNG.StreamGenerator) ( ...@@ -94,7 +95,7 @@ func createKeys(rng *fastRNG.StreamGenerator) (
transmissionRsaKey, receptionRsaKey *rsa.PrivateKey) { transmissionRsaKey, receptionRsaKey *rsa.PrivateKey) {
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
wg.Add(1) wg.Add(2)
// RSA Keygen (4096 bit defaults) // RSA Keygen (4096 bit defaults)
go func() { go func() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment