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:
parent
34214190f8
commit
94037bf603
2
token.go
2
token.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user