1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

server: remove unused invalidRequest

This commit is contained in:
Lars Lehtonen 2020-01-20 10:09:27 -08:00
parent ed2bd68d28
commit 7a17a221ff
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -25,10 +25,6 @@ import (
var (
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
// because Typeof takes an empty interface value. This is annoying.