Skip to content

Commit 59472c8

Browse files
committed
chg: typo
1 parent 4130d71 commit 59472c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: streamclient.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (c *streamClient) buildChannelArgument(invocation invocationMessage, argTyp
3333
if argType.Kind() != reflect.Chan || argType.ChanDir() == reflect.SendDir {
3434
return reflect.Value{}, false, nil
3535
} else if len(invocation.StreamIds) > chanCount {
36-
// MakeChan does only accept bidirectional channels and we need to Send to this channel anyway
36+
// MakeChan does only accept bidirectional channels, and we need to Send to this channel anyway
3737
arg = reflect.MakeChan(reflect.ChanOf(reflect.BothDir, argType.Elem()), int(c.streamBufferCapacity))
3838
c.upstreamChannels[invocation.StreamIds[chanCount]] = arg
3939
return arg, true, nil
@@ -64,7 +64,7 @@ func (c *streamClient) receiveStreamItem(streamItem streamItemMessage) error {
6464
c.mx.Lock()
6565
defer c.mx.Unlock()
6666
if upChan, ok := c.upstreamChannels[streamItem.InvocationID]; ok {
67-
// Mark stream as running to detect illegal completion with result on this id
67+
// Mark the stream as running to detect illegal completion with result on this id
6868
c.runningStreams[streamItem.InvocationID] = true
6969
chanVal := reflect.New(upChan.Type().Elem())
7070
err := c.protocol.UnmarshalArgument(streamItem.Item, chanVal.Interface())

0 commit comments

Comments
 (0)