cache: fix closing too early (#791)

* cache: fix closing too early

* fix test
This commit is contained in:
Caleb Doxsey 2020-05-27 11:28:08 -06:00 committed by GitHub
parent 12d90a021c
commit 748ab836b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,6 @@ func setupCache(opt *config.Options, controlPlane *controlplane.Server) error {
if err != nil {
return fmt.Errorf("error creating config service: %w", err)
}
defer svc.Close()
pbCache.RegisterCacheServer(controlPlane.GRPCServer, svc)
log.Info().Msg("enabled cache service")
return nil

View file

@ -274,7 +274,8 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
}
]
}
]
],
"validateClusters": false
},
"statPrefix": "ingress",
"tracing": {