Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
110891: rpc: remove stale peer circuit breaker comment r=erikgrinaker a=erikgrinaker

The breakers are in fact active and used by the node dialer.

Resolves cockroachdb#110553.
Epic: none
Release note: None

Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
craig[bot] and erikgrinaker committed Sep 19, 2023
2 parents 0462f36 + 7374801 commit 97e4549
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/rpc/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ type peer struct {
// active - it is the heartbeat loop and manages `mu.c.` (including
// recreating it after the connection fails and has to be redialed).
//
// NB: at the time of writing, we don't use the breaking capabilities,
// i.e. we don't check the circuit breaker in `Connect`. We will do that
// once the circuit breaker is mature, and then retire the breakers
// returned by Context.getBreaker.
//
// Currently what will happen when a peer is down is that `c` will be
// recreated (blocking new callers to `Connect()`), a connection attempt
// will be made, and callers will see the failure to this attempt.
//
// With the breaker, callers would be turned away eagerly until there
// is a known-healthy connection.
//
// mu must *NOT* be held while operating on `b`. This is because the async
// probe will sometimes have to synchronously acquire mu before spawning off.
b *circuit.Breaker
Expand Down

0 comments on commit 97e4549

Please sign in to comment.