added multi-parsing

This commit is contained in:
2021-10-05 00:00:01 +02:00
parent 79d1df4cf3
commit 8eec0b3968
5 changed files with 37 additions and 22 deletions

View File

@@ -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()