bump github.com/tribalwarshelp/shared

This commit is contained in:
Dawid Wysokiński 2020-06-18 17:16:32 +02:00
parent 1cad839eec
commit 9db5260115
3 changed files with 5 additions and 7 deletions

2
go.mod
View File

@ -5,5 +5,5 @@ go 1.14
require (
github.com/Kichiyaki/gqlgen-client v0.0.0-20200604145848-274796c104f4
github.com/pkg/errors v0.9.1
github.com/tribalwarshelp/shared v0.0.0-20200618145111-9b5a94793865
github.com/tribalwarshelp/shared v0.0.0-20200618150949-896cd6c98d06
)

6
go.sum
View File

@ -17,10 +17,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.6.0 h1:jlIyCplCJFULU/01vCkhKuTyc3OorI3bJFuw6obfgho=
github.com/stretchr/testify v1.6.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/tribalwarshelp/shared v0.0.0-20200604161459-deeeccf99815 h1:c+BTJgJyif/HDt8bRxqNaK7zQReI59ho9yWdk7a/gNo=
github.com/tribalwarshelp/shared v0.0.0-20200604161459-deeeccf99815/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/tribalwarshelp/shared v0.0.0-20200618145111-9b5a94793865 h1:ZTVUkUS8igtkp3rTHf8tfWi8Mf54WZ6JcEG/Fb7rjlY=
github.com/tribalwarshelp/shared v0.0.0-20200618145111-9b5a94793865/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/tribalwarshelp/shared v0.0.0-20200618150949-896cd6c98d06 h1:T87o4fice0XTUdAG/tctFCDiuyUGb10bY1hdWvwlrro=
github.com/tribalwarshelp/shared v0.0.0-20200618150949-896cd6c98d06/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

View File

@ -71,7 +71,7 @@ func New(url string) *SDK {
url: url,
httpClient: &http.Client{},
}
sdk.client = client.New(http.HandlerFunc(sdk.makeRequest))
sdk.client = client.New(http.HandlerFunc(sdk.doRequest))
sdk.LangVersions = &LangVersions{sdk}
sdk.Servers = &Servers{sdk}
sdk.Players = &Players{sdk}
@ -81,7 +81,7 @@ func New(url string) *SDK {
return sdk
}
func (sdk *SDK) makeRequest(w http.ResponseWriter, r *http.Request) {
func (sdk *SDK) doRequest(w http.ResponseWriter, r *http.Request) {
resp, err := sdk.httpClient.Post(sdk.url, "application/json", r.Body)
if err != nil {
w.WriteHeader(400)