Skip to content

Commit

Permalink
fix: support marshaling client.ClientWriteResponse (#145)
Browse files Browse the repository at this point in the history
fix: remove unmarshallable *_nethttp.Response from MarshalJSON fixes #144
  • Loading branch information
FedotCompot authored Nov 28, 2024
1 parent e534861 commit 8847b87
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1382,9 +1382,6 @@ func (o ClientWriteRequestWriteResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
toSerialize["tuple_key"] = o.TupleKey
toSerialize["status"] = o.Status
if o.HttpResponse != nil {
toSerialize["http_response"] = o.HttpResponse
}
if o.Error != nil {
toSerialize["error"] = o.Error
}
Expand All @@ -1402,9 +1399,6 @@ func (o ClientWriteRequestDeleteResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
toSerialize["tuple_key"] = o.TupleKey
toSerialize["status"] = o.Status
if o.HttpResponse != nil {
toSerialize["http_response"] = o.HttpResponse
}
if o.Error != nil {
toSerialize["error"] = o.Error
}
Expand Down

0 comments on commit 8847b87

Please sign in to comment.