1
0
mirror of https://github.com/Luzifer/vault-otp-ui.git synced 2024-09-19 09:03:00 +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) go fetchTokenFromKey(client, key, respChan, wg, pointOfTime)
case t := <-respChan: case t := <-respChan:
resp = append(resp, t) resp = append(resp, t)
wg.Done()
case <-done: case <-done:
close(scanPool) close(scanPool)
close(keyPoolChan) close(keyPoolChan)
@ -199,5 +200,6 @@ func fetchTokenFromKey(client *api.Client, k string, respChan chan *token, wg *s
return return
} }
wg.Add(1)
respChan <- tok respChan <- tok
} }