[feat] Response Close 的时候需要 return error

master
what 12 months ago
parent a30b34e137
commit 5f50e424be

@ -43,12 +43,12 @@ func (this Response) Send(data string) error {
}
// 取消接收数据
func (this Response) Close() {
this.recv.Close()
func (this Response) Close() error {
if this.method.IsServerStreaming() {
this.cancel()
}
return this.recv.Close()
}
func (this Response) GetCategory() string {

Loading…
Cancel
Save