Skip to content

Commit cafb72c

Browse files
Soha-Albaghdadymaxmoehl
authored andcommitted
refactor: rename routeRemoved to routePoolRemoved
1 parent 10488ed commit cafb72c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/code.cloudfoundry.org/gorouter/registry/registry.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (r *RouteRegistry) Unregister(uri route.Uri, endpoint *route.Endpoint) {
180180
return
181181
}
182182

183-
endpointRemoved, routeRemoved := r.unregister(uri, endpoint)
183+
endpointRemoved, routePoolRemoved := r.unregister(uri, endpoint)
184184

185185
r.reporter.CaptureUnregistryMessage(endpoint)
186186

@@ -195,15 +195,15 @@ func (r *RouteRegistry) Unregister(uri route.Uri, endpoint *route.Endpoint) {
195195
r.logger.Info(logMsg, buildSlogAttrs(uri, endpoint)...)
196196
}
197197

198-
if routeRemoved {
198+
if routePoolRemoved {
199199
r.logger.Info("route-unregistered", slog.Any("uri", uri))
200200
r.reporter.CaptureRoutesUnregistered()
201201
} else {
202202
r.logger.Info("route-not-unregistered", slog.Any("uri", uri))
203203
}
204204
}
205205

206-
func (r *RouteRegistry) unregister(uri route.Uri, endpoint *route.Endpoint) (endpointRemoved, routeRemoved bool) {
206+
func (r *RouteRegistry) unregister(uri route.Uri, endpoint *route.Endpoint) (endpointRemoved, routePoolRemoved bool) {
207207
r.Lock()
208208
defer r.Unlock()
209209

0 commit comments

Comments
 (0)