Skip to content

Commit

Permalink
[bootstrap_config_export_field] c
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Dec 2, 2021
1 parent a62d9b7 commit fb4c518
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xds/internal/xdsclient/bootstrap/bootstrap.go
Expand Up @@ -88,9 +88,13 @@ type ServerConfig struct {

// String returns the string representation of the ServerConfig.
//
// Note that it covers (almost) all the fields so the string can be used map
// keys. Except NodeProto because NodeProto isn't used by federation (and this
// is only used as key in federation).
// This string representation will be used as map keys in federation
// (`map[ServerConfig]authority`), so that the stream will be shared by
// authorities with different name but same server config.
//
// It covers (almost) all the fields so the string can represent the config
// content. It doesn't cover NodeProto because NodeProto isn't used by
// federation.
func (sc *ServerConfig) String() string {
var ver string
switch sc.TransportAPI {
Expand Down

0 comments on commit fb4c518

Please sign in to comment.