@@ -25,7 +25,6 @@ import (
25
25
26
26
v3statuspb "github.com/envoyproxy/go-control-plane/envoy/service/status/v3"
27
27
"google.golang.org/grpc/internal/backoff"
28
- "google.golang.org/grpc/internal/grpcsync"
29
28
"google.golang.org/grpc/internal/xds/bootstrap"
30
29
)
31
30
@@ -131,7 +130,7 @@ func (p *Pool) GetClientForTesting(name string) (XDSClient, func(), error) {
131
130
return nil , nil , fmt .Errorf ("xds:: xDS client with name %q not found" , name )
132
131
}
133
132
c .incrRef ()
134
- return c , grpcsync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
133
+ return c , sync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
135
134
}
136
135
137
136
// SetFallbackBootstrapConfig is used to specify a bootstrap configuration
@@ -193,7 +192,7 @@ func (p *Pool) newRefCounted(name string, watchExpiryTimeout time.Duration, stre
193
192
194
193
if c := p .clients [name ]; c != nil {
195
194
c .incrRef ()
196
- return c , grpcsync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
195
+ return c , sync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
197
196
}
198
197
199
198
c , err := newClientImpl (p .config , watchExpiryTimeout , streamBackoff )
@@ -208,5 +207,5 @@ func (p *Pool) newRefCounted(name string, watchExpiryTimeout time.Duration, stre
208
207
xdsClientImplCreateHook (name )
209
208
210
209
logger .Infof ("xDS node ID: %s" , p .config .Node ().GetId ())
211
- return client , grpcsync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
210
+ return client , sync .OnceFunc (func () { p .clientRefCountedClose (name ) }), nil
212
211
}
0 commit comments