1
0
Fork 0
mirror of https://github.com/Luzifer/vault-otp-ui.git synced 2024-11-08 08:10:11 +00:00

Address sorting issues

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-23 18:45:21 +01:00
parent 34214190f8
commit 94037bf603
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -115,6 +115,7 @@ func getSecretsFromVault(tok string, pointOfTime time.Time) ([]*token, error) {
go fetchTokenFromKey(client, key, respChan, wg, pointOfTime)
case t := <-respChan:
resp = append(resp, t)
wg.Done()
case <-done:
close(scanPool)
close(keyPoolChan)
@ -199,5 +200,6 @@ func fetchTokenFromKey(client *api.Client, k string, respChan chan *token, wg *s
return
}
wg.Add(1)
respChan <- tok
}