1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-10 21:52:01 +02:00

Merge pull request #1129 from alrs/remove-unused-server-var

server: remove unused invalidRequest
This commit is contained in:
Asim Aslam
2020-01-20 18:24:42 +00:00
committed by GitHub

View File

@@ -25,10 +25,6 @@ import (
var ( var (
lastStreamResponseError = errors.New("EOS") lastStreamResponseError = errors.New("EOS")
// A value sent as a placeholder for the server's response value when the server
// receives an invalid request. It is never decoded by the client since the Response
// contains an error when it is used.
invalidRequest = struct{}{}
// Precompute the reflect type for error. Can't use error directly // Precompute the reflect type for error. Can't use error directly
// because Typeof takes an empty interface value. This is annoying. // because Typeof takes an empty interface value. This is annoying.