Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes bug #1448

Merged
merged 2 commits into from
Aug 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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