mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 07:50:26 +02:00
cache: fix closing too early (#791)
* cache: fix closing too early * fix test
This commit is contained in:
parent
12d90a021c
commit
748ab836b6
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -274,7 +274,8 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
|
|||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"validateClusters": false
|
||||
},
|
||||
"statPrefix": "ingress",
|
||||
"tracing": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue