Skip to content

Commit

Permalink
Revert "updating various files to use mxmCherry/openrtb repo instead …
Browse files Browse the repository at this point in the history
…of prebid/openrtb forked repo, as well as some var type changes (#115)" (#121)

This reverts commit cb7c641.
  • Loading branch information
dbemiller authored and Matt Kendall committed Sep 8, 2017
1 parent cb7c641 commit afccf5d
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion adapters/appnexus.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"golang.org/x/net/context/ctxhttp"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type AppNexusAdapter struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/appnexus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"fmt"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type anTagInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/facebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"net/http"
"strings"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
"github.com/prebid/prebid-server/pbs"
"golang.org/x/net/context/ctxhttp"
)
Expand Down
2 changes: 1 addition & 1 deletion adapters/facebook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"fmt"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type tagInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"golang.org/x/net/context/ctxhttp"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type IndexAdapter struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"fmt"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

func TestIndexInvalidCall(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions adapters/openrtb_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package adapters
import (
"github.com/prebid/prebid-server/pbs"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

func makeOpenRTBGeneric(req *pbs.PBSRequest, bidder *pbs.PBSBidder, bidderFamily string) openrtb.BidRequest {
Expand All @@ -22,7 +22,7 @@ func makeOpenRTBGeneric(req *pbs.PBSRequest, bidder *pbs.PBSBidder, bidderFamily
Format: unit.Sizes,
TopFrame: unit.TopFrame,
},
Secure: &req.Secure,
Secure: req.Secure,
// pmp
// ext
}
Expand Down
2 changes: 1 addition & 1 deletion adapters/openrtb_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

func TestOpenRTB(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/pubmatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"net/url"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
"github.com/prebid/prebid-server/pbs"
"golang.org/x/net/context/ctxhttp"
)
Expand Down
2 changes: 1 addition & 1 deletion adapters/pubmatic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"fmt"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

func TestPubmaticInvalidCall(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/pulsepoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
"github.com/prebid/prebid-server/pbs"
"golang.org/x/net/context/ctxhttp"
)
Expand Down
2 changes: 1 addition & 1 deletion adapters/pulsepoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"testing"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
"github.com/prebid/prebid-server/cache/dummycache"
"github.com/prebid/prebid-server/pbs"
)
Expand Down
2 changes: 1 addition & 1 deletion adapters/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"golang.org/x/net/context/ctxhttp"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type RubiconAdapter struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/rubicon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"fmt"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
)

type rubiAppendTrackerUrlTestScenario struct {
Expand Down
4 changes: 2 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import:
- proto
- package: github.com/julienschmidt/httprouter
version: ~1.1.0
- package: github.com/mxmCherry/openrtb
version: ~6.0.0
- package: github.com/prebid/openrtb
version: ~3.0.3
- package: github.com/rcrowley/go-metrics
- package: github.com/spf13/viper
- package: github.com/vrischmann/go-metrics-influxdb
Expand Down
6 changes: 3 additions & 3 deletions pbs/pbsrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/spf13/viper"
"golang.org/x/net/publicsuffix"

"github.com/mxmCherry/openrtb"
"github.com/prebid/openrtb"
"github.com/prebid/prebid-server/cache"
"github.com/prebid/prebid-server/prebid"
)
Expand Down Expand Up @@ -82,7 +82,7 @@ type PBSRequest struct {
SortBids int8 `json:"sort_bids"`
MaxKeyLength int8 `json:"max_key_length"`
Secure int8 `json:"secure"`
TimeoutMillis int64 `json:"timeout_millis"`
TimeoutMillis uint64 `json:"timeout_millis"`
AdUnits []AdUnit `json:"ad_units"`
IsDebug bool `json:"is_debug"`
App *openrtb.App `json:"app"`
Expand Down Expand Up @@ -129,7 +129,7 @@ func ParsePBSRequest(r *http.Request, cache cache.Cache) (*PBSRequest, error) {
}

if pbsReq.TimeoutMillis == 0 || pbsReq.TimeoutMillis > 2000 {
pbsReq.TimeoutMillis = int64(viper.GetInt("default_timeout_ms"))
pbsReq.TimeoutMillis = uint64(viper.GetInt("default_timeout_ms"))
}

if pbsReq.Device == nil {
Expand Down

0 comments on commit afccf5d

Please sign in to comment.