added multi-parsing
This commit is contained in:
@@ -26,6 +26,9 @@ type Conf struct {
|
||||
Logging struct {
|
||||
Level string
|
||||
}
|
||||
Parser struct {
|
||||
Worker int
|
||||
}
|
||||
Steam struct {
|
||||
Username string
|
||||
APIKey string `yaml:"api_key"`
|
||||
@@ -151,7 +154,7 @@ func getNextShareCode(lastCode string, apiKey string, authCode string, steamId u
|
||||
if r.StatusCode == 202 {
|
||||
return "n/a", nil
|
||||
} else if r.StatusCode != 200 {
|
||||
return "", fmt.Errorf("bad response from steam api (HTTP%d)", r.StatusCode)
|
||||
return "", fmt.Errorf("bad response from steam api (HTTP %d)", r.StatusCode)
|
||||
}
|
||||
|
||||
defer r.Body.Close()
|
||||
|
Reference in New Issue
Block a user