Compare commits
1 Commits
b76b935608
...
c3b8d84968
Author | SHA1 | Date | |
---|---|---|---|
c3b8d84968 |
@ -71,6 +71,10 @@ func (c *Client) SetState(selector string, state State) ([]Result, error) {
|
|||||||
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
if state.Fast && resp.StatusCode == http.StatusAccepted {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
if err = json.NewDecoder(resp.Body).Decode(&s); err != nil {
|
if err = json.NewDecoder(resp.Body).Decode(&s); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user