bump github.com/tribalwarshelp/shared

This commit is contained in:
Dawid Wysokiński 2020-06-19 18:33:54 +02:00
parent 755da7f9e6
commit ed14e23638
3 changed files with 5 additions and 3 deletions

View File

@ -295,9 +295,9 @@ func (h *updateServerDataHandler) getVillages() ([]*models.Village, error) {
return villages, nil
}
func (h *updateServerDataHandler) getConfig() (*models.Config, error) {
func (h *updateServerDataHandler) getConfig() (*models.ServerConfig, error) {
url := h.baseURL + endpointConfig
cfg := &models.Config{}
cfg := &models.ServerConfig{}
err := getXML(url, cfg)
if err != nil {
return nil, errors.Wrap(err, "getConfig")

2
go.mod
View File

@ -8,6 +8,6 @@ require (
github.com/joho/godotenv v1.3.0
github.com/pkg/errors v0.9.1
github.com/robfig/cron/v3 v3.0.1
github.com/tribalwarshelp/shared v0.0.0-20200619155726-3476188924c3
github.com/tribalwarshelp/shared v0.0.0-20200619163026-783d3512bc3e
golang.org/x/net v0.0.0-20200528225125-3c3fba18258b // indirect
)

2
go.sum
View File

@ -92,6 +92,8 @@ github.com/tribalwarshelp/shared v0.0.0-20200619133428-b2cab5452bdc h1:Rx6Mi32rN
github.com/tribalwarshelp/shared v0.0.0-20200619133428-b2cab5452bdc/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/tribalwarshelp/shared v0.0.0-20200619155726-3476188924c3 h1:vJyTmEdxs6b3BJ3c2QsobHWQgfCQl9ninyVLnLD2yFk=
github.com/tribalwarshelp/shared v0.0.0-20200619155726-3476188924c3/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/tribalwarshelp/shared v0.0.0-20200619163026-783d3512bc3e h1:u54k/lorToKUmhruBLLLtykF4MBC3qu5xrzDTk2WLjY=
github.com/tribalwarshelp/shared v0.0.0-20200619163026-783d3512bc3e/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/vmihailenco/bufpool v0.1.5/go.mod h1:fL9i/PRTuS7AELqAHwSU1Zf1c70xhkhGe/cD5ud9pJk=
github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94=
github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ=