Skip to content
Snippets Groups Projects
Commit ed529ab7 authored by meskio's avatar meskio :tent: Committed by Kali Kaneko
Browse files

Get the list of locations as soon as possible

parent e35d36c9
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ func initializeContext(opts *InitOpts) {
go trigger(OnStatusChanged)
go checkErrors(errCh)
initializeBitmask(errCh, opts)
go trigger(OnStatusChanged)
}
func checkErrors(errCh chan string) {
......
......@@ -225,6 +225,10 @@ func (b *Bonafide) GetAllGateways(transport string) ([]Gateway, error) {
}
func (b *Bonafide) ListLocationFullness(transport string) map[string]float64 {
err := b.maybeInitializeEIP()
if err != nil {
log.Println("Error fetching eip-service.json:", err)
}
return b.gateways.listLocationFullness(transport)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment