Skip to content

Commit

Permalink
hessian encode attachments return error (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 authored Nov 16, 2021
1 parent 1fdd429 commit b90089d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/dubbo/impl/hessian.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ func marshalRequest(encoder *hessian.Encoder, p DubboPackage) ([]byte, error) {
request.Attachments[TIMEOUT_KEY] = strconv.Itoa(int(service.Timeout / time.Millisecond))
}

_ = encoder.Encode(request.Attachments)
return encoder.Buffer(), nil
err = encoder.Encode(request.Attachments)
return encoder.Buffer(), err
}

var versionInt = make(map[string]int)
Expand Down

0 comments on commit b90089d

Please sign in to comment.