Skip to content

Commit 302bcfc

Browse files
chore: fix some comments
Signed-off-by: murongshaozong <[email protected]>
1 parent ced812e commit 302bcfc

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
@@ -1183,12 +1183,12 @@ func (a *csAttempt) finish(err error) {
11831183
a.mu.Unlock()
11841184
}
11851185

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

0 commit comments

Comments
 (0)