Merge branch 'develop'

This commit is contained in:
ErickSkrauch 2017-06-17 01:30:58 +03:00
commit a661f9aac3
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
version: '2'
services:
redis:
image: redis:3.0-alpine
image: redis:3.2-32bit
volumes:
- ./data/redis:/data

View File

@ -5,7 +5,7 @@ import (
"net/http"
)
const domain = "https://dev.account.ely.by"
const domain = "https://account.ely.by"
var Client = &http.Client{}

View File

@ -42,8 +42,10 @@ func _getByField(field string, value string) (accounts.AccountInfoResponse, erro
func getToken() (*accounts.Token, error) {
if token == nil {
println("token is nil, trying to obtain new one")
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
if err != nil {
println("cannot obtain new one token", err)
return &accounts.Token{}, err
}