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:
parent
34214190f8
commit
94037bf603
1 changed files with 2 additions and 0 deletions
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 a new issue