Skip to content
Snippets Groups Projects
Verified Commit b1c3aef7 authored by Pea Nut's avatar Pea Nut
Browse files

Rename GetAllGateways to FetchGateways and change return values of FetchGateways

After removing `Bitmask.ReloadFirewall()` there are no calls to `b.api.GetAllGateways()`
where the calling function acutally need the Gateways as return values. So I renamed the
function to FetchGateways. The function now only returns an error (instead of
`([]bonafide.Gateway, error)`). This simplifies the code of v5 a bit.
In v3 `gatewayPool.getAll()` now also returns just an error. `p.getGatewaysByTimezone`
and `p.getGatewaysFromMenshen` are also used by `getBest()` so I didn't touch that.
We want to get rid of v3 anyway...
parent 74be3819
No related branches found
No related tags found
No related merge requests found
Pipeline #228281 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment