feat: observe changes in repository to automatically clear cache
All checks were successful
Cadoles/bouncer/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/bouncer/pipeline/pr-master This commit looks good
This commit is contained in:
@ -55,11 +55,14 @@ func (s *Server) Start(ctx context.Context) (<-chan net.Addr, <-chan error) {
|
||||
return addrs, errs
|
||||
}
|
||||
|
||||
func (s *Server) ClearCache() {
|
||||
s.layerCache.Clear()
|
||||
func (s *Server) ClearProxyCache() {
|
||||
s.proxyCache.Clear()
|
||||
}
|
||||
|
||||
func (s *Server) ClearLayerCache() {
|
||||
s.layerCache.Clear()
|
||||
}
|
||||
|
||||
func (s *Server) run(parentCtx context.Context, addrs chan net.Addr, errs chan error) {
|
||||
defer func() {
|
||||
close(errs)
|
||||
|
Reference in New Issue
Block a user