Skip to content

Commit

Permalink
changed field name
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-priyanka-bagade committed Jun 11, 2024
1 parent 79dea92 commit af14033
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ require (
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
github.com/yudai/pp v2.0.1+incompatible // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FB
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI=
github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
2 changes: 1 addition & 1 deletion modules/pubmatic/openwrap/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Config struct {
type Server struct {
HostName string
DCName string //Name of the data center
EndPoint string
Endpoint string
}

type Database struct {
Expand Down
2 changes: 1 addition & 1 deletion modules/pubmatic/openwrap/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func initOpenWrapServer(cfg *config.Config) *http.Server {
wakanda.Init(cfg.Wakanda)
hbMux := http.NewServeMux()
hbMux.HandleFunc("/wakanda", wakanda.Handler(cfg.Wakanda))
srvInterface := strings.TrimPrefix(cfg.Server.EndPoint, "http://")
srvInterface := strings.TrimPrefix(cfg.Server.Endpoint, "http://")
server := &http.Server{
Handler: hbMux,
Addr: srvInterface,
Expand Down
2 changes: 1 addition & 1 deletion modules/pubmatic/openwrap/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestInitOpenWrapServer(t *testing.T) {
Server: config.Server{
HostName: "localhost",
DCName: "abcd",
EndPoint: "http://localhost:18012",
Endpoint: "http://localhost:18012",
},
},
},
Expand Down

0 comments on commit af14033

Please sign in to comment.