Skip to content

Commit 3cb3342

Browse files
.*: fix comments (#7504)
1 parent eece43b commit 3cb3342

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ func recvBufferPool(bufferPool SharedBufferPool) ServerOption {
622622
// workload (assuming a QPS of a few thousand requests/sec).
623623
const serverWorkerResetThreshold = 1 << 16
624624

625-
// serverWorkers blocks on a *transport.Stream channel forever and waits for
625+
// serverWorker blocks on a *transport.Stream channel forever and waits for
626626
// data to be fed by serveStreams. This allows multiple requests to be
627627
// processed by the same goroutine, removing the need for expensive stack
628628
// re-allocations (see the runtime.morestack problem [1]).

stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,12 +1182,12 @@ func (a *csAttempt) finish(err error) {
11821182
a.mu.Unlock()
11831183
}
11841184

1185-
// newClientStream creates a ClientStream with the specified transport, on the
1185+
// newNonRetryClientStream creates a ClientStream with the specified transport, on the
11861186
// given addrConn.
11871187
//
11881188
// It's expected that the given transport is either the same one in addrConn, or
11891189
// is already closed. To avoid race, transport is specified separately, instead
1190-
// of using ac.transpot.
1190+
// of using ac.transport.
11911191
//
11921192
// Main difference between this and ClientConn.NewStream:
11931193
// - no retry

0 commit comments

Comments
 (0)