Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Dec 23, 2024
1 parent 056e0ae commit b20e018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions balancer/pickfirst/pickfirstleaf/pickfirstleaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func init() {
}

type (
// enableHealthListenerKeyType is a unique key type used in resolver attributes
// to indicate whether the health listener usage is enabled.
// enableHealthListenerKeyType is a unique key type used in resolver
// attributes to indicate whether the health listener usage is enabled.
enableHealthListenerKeyType struct{}
// managedByPickfirstKeyType is an attribute key type to inform Outlier
// Detection that the generic health listener is being used.
Expand Down
8 changes: 4 additions & 4 deletions xds/internal/balancer/outlierdetection/subconn_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ import (
// whether or not this SubConn is ejected.
type subConnWrapper struct {
balancer.SubConn
// addressInfo is a pointer to the subConnWrapper's corresponding address
// map entry, if the map entry exists. It is accessed atomically.
addressInfo unsafe.Pointer // *addressInfo
// The following fields are set during object creation and read-only after
// that.

Expand All @@ -48,10 +51,7 @@ type subConnWrapper struct {
// this field can be removed.
healthListenerEnabled bool

// addressInfo is a pointer to the subConnWrapper's corresponding address
// map entry, if the map entry exists.
addressInfo unsafe.Pointer // *addressInfo
scUpdateCh *buffer.Unbounded
scUpdateCh *buffer.Unbounded

// The following fields are only referenced in the context of a work
// serializing buffer and don't need to be protected by a mutex.
Expand Down

0 comments on commit b20e018

Please sign in to comment.