mirror of
https://github.com/Luzifer/vault-otp-ui.git
synced 2024-09-19 17:13: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)
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user