From 7dd6a9231b9c395480c79ea86e1e92efa955c20d Mon Sep 17 00:00:00 2001 From: josh <josh@elixxir.io> Date: Tue, 12 Oct 2021 14:50:59 -0700 Subject: [PATCH] Refactor of regions --- api/client.go | 4 +++- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/client.go b/api/client.go index b1edca284..e6561feea 100644 --- a/api/client.go +++ b/api/client.go @@ -611,7 +611,9 @@ func (c *Client) GetPreferredBins(countryCode string) ([]string, error) { // Add additional bins in special cases switch bin { - case region.Africa: + case region.SouthernAfrica: + bins = append(bins, region.WesternEurope.String()) + case region.NorthernAfrica: bins = append(bins, region.WesternEurope.String()) case region.MiddleEast: bins = append(bins, region.EasternEurope.String()) diff --git a/go.mod b/go.mod index 56421de6a..18e39340a 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( gitlab.com/elixxir/primitives v0.0.3-0.20211012201904-909f995234c4 gitlab.com/xx_network/comms v0.0.4-0.20211012201830-5f8d4f171a3b gitlab.com/xx_network/crypto v0.0.5-0.20211012201721-71f9e80ffdb7 - gitlab.com/xx_network/primitives v0.0.4-0.20211012163930-7d585c6d1cb4 + gitlab.com/xx_network/primitives v0.0.4-0.20211012203555-c393217587ae golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 golang.org/x/net v0.0.0-20210525063256-abc453219eb5 google.golang.org/genproto v0.0.0-20210105202744-fe13368bc0e1 // indirect diff --git a/go.sum b/go.sum index dc7b09f5b..bf3a7cb81 100644 --- a/go.sum +++ b/go.sum @@ -279,6 +279,8 @@ gitlab.com/xx_network/primitives v0.0.0-20200804183002-f99f7a7284da/go.mod h1:OK gitlab.com/xx_network/primitives v0.0.2/go.mod h1:cs0QlFpdMDI6lAo61lDRH2JZz+3aVkHy+QogOB6F/qc= gitlab.com/xx_network/primitives v0.0.4-0.20211012163930-7d585c6d1cb4 h1:EoRGPEZWUhOM/TquRGkFXoq4vC2OKv/uCPx1IW+iS0k= gitlab.com/xx_network/primitives v0.0.4-0.20211012163930-7d585c6d1cb4/go.mod h1:9imZHvYwNFobxueSvVtHneZLk9wTK7HQTzxPm+zhFhE= +gitlab.com/xx_network/primitives v0.0.4-0.20211012203555-c393217587ae h1:3sbwClqqSQ3oh/QVx8Q8/RJSqERJcpqbZPxFNIIWF2M= +gitlab.com/xx_network/primitives v0.0.4-0.20211012203555-c393217587ae/go.mod h1:9imZHvYwNFobxueSvVtHneZLk9wTK7HQTzxPm+zhFhE= gitlab.com/xx_network/ring v0.0.3-0.20210527191221-ce3f170aabd5 h1:FY+4Rh1Q2rgLyv10aKJjhWApuKRCR/054XhreudfAvw= gitlab.com/xx_network/ring v0.0.3-0.20210527191221-ce3f170aabd5/go.mod h1:aLzpP2TiZTQut/PVHR40EJAomzugDdHXetbieRClXIM= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -- GitLab