internal/jsonrpc2_v2: fix typos
Change-Id: I96ad3f8fdb675bdb249934d92fd5d01d28c7dd6b GitHub-Last-Rev: 969dfc7945b6199ee4b28a04c48e8bbe45f4df7b GitHub-Pull-Request: golang/tools#421 Reviewed-on: https://go-review.googlesource.com/c/tools/+/461075 Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
33d4ad0176
commit
ef64c539fa
1 changed files with 5 additions and 5 deletions
|
|
@ -156,11 +156,11 @@ func (c *Connection) updateInFlight(f func(*inFlightState)) {
|
|||
}
|
||||
}
|
||||
|
||||
// idle reports whether the connction is in a state with no pending calls or
|
||||
// idle reports whether the connection is in a state with no pending calls or
|
||||
// notifications.
|
||||
//
|
||||
// If idle returns true, the readIncoming goroutine may still be running,
|
||||
// but no other goroutines are doing work on behalf of the connnection.
|
||||
// but no other goroutines are doing work on behalf of the connection.
|
||||
func (s *inFlightState) idle() bool {
|
||||
return len(s.outgoingCalls) == 0 && s.outgoingNotifications == 0 && s.incoming == 0 && !s.handlerRunning
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue