Update Quobyte API
This commit is contained in:
6
vendor/github.com/quobyte/api/rpc_client.go
generated
vendored
6
vendor/github.com/quobyte/api/rpc_client.go
generated
vendored
@@ -7,6 +7,7 @@ import (
|
||||
"io"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"reflect"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
@@ -88,6 +89,11 @@ func decodeResponse(ioReader io.Reader, reply interface{}) error {
|
||||
}
|
||||
|
||||
func (client QuobyteClient) sendRequest(method string, request interface{}, response interface{}) error {
|
||||
etype := reflect.ValueOf(request).Elem()
|
||||
field := etype.FieldByName("RetryPolicy")
|
||||
if field.IsValid() {
|
||||
field.SetString(client.GetAPIRetryPolicy())
|
||||
}
|
||||
message, err := encodeRequest(method, request)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user