Skip to content

Commit 9a689dc

Browse files
authored
xdsclient: change receiver on BootstrapConfig() to be consistent (#5532)
1 parent ae261b0 commit 9a689dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xds/internal/xdsclient/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type XDSClient interface {
5252
Close()
5353
}
5454

55+
var _ XDSClient = &clientImpl{}
56+
5557
// clientImpl is the real implementation of the xds client. The exported Client
5658
// is a wrapper of this struct with a ref count.
5759
//
@@ -105,7 +107,7 @@ func newWithConfig(config *bootstrap.Config, watchExpiryTimeout time.Duration, i
105107

106108
// BootstrapConfig returns the configuration read from the bootstrap file.
107109
// Callers must treat the return value as read-only.
108-
func (c *clientRefCounted) BootstrapConfig() *bootstrap.Config {
110+
func (c *clientImpl) BootstrapConfig() *bootstrap.Config {
109111
return c.config
110112
}
111113

0 commit comments

Comments
 (0)