-
- Downloads
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...
Showing
- pkg/vpn/bonafide/bonafide.go 4 additions, 5 deletionspkg/vpn/bonafide/bonafide.go
- pkg/vpn/bonafide/gateways.go 6 additions, 4 deletionspkg/vpn/bonafide/gateways.go
- pkg/vpn/interface.go 1 addition, 1 deletionpkg/vpn/interface.go
- pkg/vpn/menshen/gateway.go 6 additions, 17 deletionspkg/vpn/menshen/gateway.go
- pkg/vpn/menshen/integration_test.go 18 additions, 12 deletionspkg/vpn/menshen/integration_test.go
- pkg/vpn/openvpn.go 1 addition, 1 deletionpkg/vpn/openvpn.go
Loading
Please register or sign in to comment