Skip to content

Commit

Permalink
Fixes bug (#1448)
Browse files Browse the repository at this point in the history
* Fixes bug

* shortens list
  • Loading branch information
hhhjort authored Aug 20, 2020
1 parent f4b0a7c commit 80d557e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions exchange/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type bidResponseWrapper struct {
func NewExchange(client *http.Client, cache prebid_cache_client.Client, cfg *config.Configuration, metricsEngine pbsmetrics.MetricsEngine, infos adapters.BidderInfos, gDPR gdpr.Permissions, currencyConverter *currencies.RateConverter) Exchange {
e := new(exchange)

e.eeaCountries = make(map[string]struct{}, len(cfg.GDPR.EEACountries))
var s struct{}
for _, c := range cfg.GDPR.EEACountries {
e.eeaCountries[c] = s
Expand Down
3 changes: 3 additions & 0 deletions exchange/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func TestNewExchange(t *testing.T) {
ExpectedTimeMillis: 20,
},
Adapters: blankAdapterConfig(openrtb_ext.BidderList()),
GDPR: config.GDPR{
EEACountries: []string{"FIN", "FRA", "GUF"},
},
}

currencyConverter := currencies.NewRateConverter(&http.Client{}, "", time.Duration(0))
Expand Down

0 comments on commit 80d557e

Please sign in to comment.