Skip to content

Commit

Permalink
Fix after cherry-picking changes to latest main.
Browse files Browse the repository at this point in the history
Not sure why rebase didn't work previously.

Signed-off-by: Konstantin Kalin <konstantin.kalin@socotra.com>
  • Loading branch information
kkalin68 committed Oct 21, 2021
1 parent b6899fb commit 40bae72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cache/v3/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func TestSnapshotCreateWatchWithResourcePreviouslyNotRequested(t *testing.T) {
rsrc.EndpointType: {testEndpoint, resource.MakeEndpoint(clusterName2, 8080)},
rsrc.ClusterType: {testCluster, resource.MakeCluster(resource.Ads, clusterName2)},
rsrc.RouteType: {testRoute, resource.MakeRoute(routeName2, clusterName2)},
rsrc.ListenerType: {testListener, resource.MakeHTTPListener(resource.Ads, listenerName2, 80, routeName2)},
rsrc.ListenerType: {testListener, resource.MakeRouteHTTPListener(resource.Ads, listenerName2, 80, routeName2)},
rsrc.RuntimeType: {},
rsrc.SecretType: {},
rsrc.ExtensionConfigType: {},
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/sotw/v3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (s *server) process(stream Stream, reqCh <-chan *discovery.DiscoveryRequest
values.scopedRouteCancel()
}
values.scopedRoutes = make(chan cache.Response, 1)
values.scopedRouteCancel = s.cache.CreateWatch(req, values.scopedRoutes)
values.scopedRouteCancel = s.cache.CreateWatch(req, streamState, values.scopedRoutes)
}
case req.TypeUrl == resource.ListenerType:
if values.listenerNonce == "" || values.listenerNonce == nonce {
Expand Down

0 comments on commit 40bae72

Please sign in to comment.