From 87dd1ed8774494875223a68a4a5714ba66230be8 Mon Sep 17 00:00:00 2001 From: Jinqiu Yu Date: Sun, 11 Mar 2018 14:43:20 +0800 Subject: [PATCH] Fix receivced, InboundBound, tranport, Enpoint typo --- common/net/destination.go | 2 +- transport/ray/ray.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/net/destination.go b/common/net/destination.go index f7f5b720b..f1166f95f 100644 --- a/common/net/destination.go +++ b/common/net/destination.go @@ -56,7 +56,7 @@ func (d Destination) IsValid() bool { return d.Network != Network_Unknown } -// AsDestination converts current Enpoint into Destination. +// AsDestination converts current Endpoint into Destination. func (p *Endpoint) AsDestination() Destination { return Destination{ Network: p.Network, diff --git a/transport/ray/ray.go b/transport/ray/ray.go index 557bc64eb..0c779784c 100644 --- a/transport/ray/ray.go +++ b/transport/ray/ray.go @@ -13,7 +13,7 @@ type OutboundRay interface { // OutboundOutput provides a stream to retrieve the response from the // outbound connection. The outbound connection shall close the channel - // after all responses are receivced and put into the channel. + // after all responses are received and put into the channel. OutboundOutput() OutputStream } @@ -24,13 +24,13 @@ type InboundRay interface { // is received and put into the channel. InboundInput() OutputStream - // InboudBound provides a stream of data for the inbound connection to write + // InboundOutput provides a stream of data for the inbound connection to write // as response. The inbound connection shall write all the data from the // channel until it is closed. InboundOutput() InputStream } -// Ray is an internal tranport channel between inbound and outbound connection. +// Ray is an internal transport channel between inbound and outbound connection. type Ray interface { InboundRay OutboundRay