Quobyte API update
This commit is contained in:
4
vendor/github.com/quobyte/api/rpc_client.go
generated
vendored
4
vendor/github.com/quobyte/api/rpc_client.go
generated
vendored
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"io"
|
||||
"log"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"reflect"
|
||||
@@ -110,5 +111,8 @@ func (client QuobyteClient) sendRequest(method string, request interface{}, resp
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode < 200 || resp.StatusCode > 299 {
|
||||
log.Printf("Warning: HTTP status code for request is %s\n", strconv.Itoa(resp.StatusCode))
|
||||
}
|
||||
return decodeResponse(resp.Body, &response)
|
||||
}
|
||||
|
Reference in New Issue
Block a user