mirror of https://github.com/grpc/grpc-go.git
xds: delete experimental package and experimental scheme (#3729)
This commit is contained in:
parent
1154df9a4e
commit
6e77a8b2f6
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* Copyright 2019 gRPC authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
|
||||
// Package experimental contains xds implementation. Users only need to import
|
||||
// this package to get all xds functionality.
|
||||
//
|
||||
// Deprecated: import package xds instead.
|
||||
package experimental
|
||||
|
||||
// TODO: remove this package after one release.
|
||||
|
||||
import (
|
||||
_ "google.golang.org/grpc/xds" // Register the balancers and resolvers.
|
||||
)
|
||||
|
|
@ -221,18 +221,3 @@ func (r *xdsResolver) Close() {
|
|||
r.cancelCtx()
|
||||
r.logger.Infof("Shutdown")
|
||||
}
|
||||
|
||||
// Keep scheme with "-experimental" temporarily. Remove after one release.
|
||||
const schemeExperimental = "xds-experimental"
|
||||
|
||||
type xdsResolverExperimentalBuilder struct {
|
||||
xdsResolverBuilder
|
||||
}
|
||||
|
||||
func (*xdsResolverExperimentalBuilder) Scheme() string {
|
||||
return schemeExperimental
|
||||
}
|
||||
|
||||
func init() {
|
||||
resolver.Register(&xdsResolverExperimentalBuilder{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,11 +55,9 @@ var (
|
|||
)
|
||||
|
||||
func TestRegister(t *testing.T) {
|
||||
for _, s := range []string{"xds", "xds-experimental"} {
|
||||
b := resolver.Get(s)
|
||||
if b == nil {
|
||||
t.Errorf("scheme %v is not registered", s)
|
||||
}
|
||||
b := resolver.Get(xdsScheme)
|
||||
if b == nil {
|
||||
t.Errorf("scheme %v is not registered", xdsScheme)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue