Skip to content

Commit

Permalink
xdsclient: remove interface check related to ResourceData (#6308)
Browse files Browse the repository at this point in the history
  • Loading branch information
anicr7 committed May 23, 2023
1 parent e9799e7 commit 2ae10b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions xds/internal/xdsclient/xdsresource/cluster_resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const (

var (
// Compile time interface checks.
_ Type = clusterResourceType{}
_ ResourceData = &ClusterResourceData{}
_ Type = clusterResourceType{}

// Singleton instantiation of the resource type implementation.
clusterType = clusterResourceType{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const (

var (
// Compile time interface checks.
_ Type = endpointsResourceType{}
_ ResourceData = &EndpointsResourceData{}
_ Type = endpointsResourceType{}

// Singleton instantiation of the resource type implementation.
endpointsType = endpointsResourceType{
Expand Down
3 changes: 1 addition & 2 deletions xds/internal/xdsclient/xdsresource/listener_resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const (

var (
// Compile time interface checks.
_ Type = listenerResourceType{}
_ ResourceData = &ListenerResourceData{}
_ Type = listenerResourceType{}

// Singleton instantiation of the resource type implementation.
listenerType = listenerResourceType{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const (

var (
// Compile time interface checks.
_ Type = routeConfigResourceType{}
_ ResourceData = &RouteConfigResourceData{}
_ Type = routeConfigResourceType{}

// Singleton instantiation of the resource type implementation.
routeConfigType = routeConfigResourceType{
Expand Down

0 comments on commit 2ae10b2

Please sign in to comment.