Commit 8162188d authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Minor fixes

parent 179436df
......@@ -134,6 +134,8 @@ func (c *config) syncConfig() (err error) {
c.RabbitMQConfig = fetchedConfig.RabbitMQConfig
c.Site = fetchedConfig.Site
log.Printf("[Conf] Synchronised configuration with %v", c.Host)
return
}
......
......@@ -235,7 +235,7 @@ func (c *config) fetchTasks() (err error) {
}
defer resp.Body.Close()
if resp.StatusCode != 400 {
if resp.StatusCode != 200 {
err = fmt.Errorf("Unable to fetch tasks (response: %v)", resp.Status)
return
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment