rpc/dataconn: fix go1.15-discovered recursive Error() method impl

rpc/dataconn/dataconn_client.go:69:9: Sprintf format %s with arg e causes recursive Error method call
This commit is contained in:
Christian Schwarz 2020-08-12 21:41:31 +02:00
parent 1190c0f6d2
commit 480176ba2d

View File

@ -66,7 +66,7 @@ type ProtocolError struct {
} }
func (e *ProtocolError) Error() string { func (e *ProtocolError) Error() string {
return fmt.Sprintf("protocol error: %s", e) return fmt.Sprintf("protocol error: %s", e.cause)
} }
func (c *Client) recv(ctx context.Context, conn *stream.Conn, res proto.Message) error { func (c *Client) recv(ctx context.Context, conn *stream.Conn, res proto.Message) error {