-
Notifications
You must be signed in to change notification settings - Fork 738
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
Unruly: dynamic bid response array size #3644
Unruly: dynamic bid response array size #3644
Conversation
Code coverage summaryNote:
unrulyRefer here for heat map coverage report
|
adapters/unruly/unruly.go
Outdated
@@ -113,7 +113,8 @@ func (a *adapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest | |||
}} | |||
} | |||
|
|||
bidResponse := adapters.NewBidderResponseWithBidsCapacity(5) | |||
count := getBidCount(bidResp) | |||
bidResponse := adapters.NewBidderResponseWithBidsCapacity(count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of computing count. could use length of internalRequest.imps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed this comment. Fixed.
Code coverage summaryNote:
unrulyRefer here for heat map coverage report
|
Code coverage summaryNote:
unrulyRefer here for heat map coverage report
|
Co-authored-by: Brian Haines <[email protected]>
Though it doesn't seem to matter, we decided that the static size of 5 was unacceptable. Dynamically size the array like other adapters.