Rename router to receiver for secondary connections (#2816)

This commit is contained in:
Todd authored and GitHub committed 2023-01-20 10:43:57 -08:00
1 parent b359561e51
commit 87b09d5e27
5 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -52,7 +52,7 @@ import (
type downstreamRouter interface {
// StartRouteMgmtTicking starts a ticker which manages the router's
// connections.
StartRouteMgmtTicking(context.Context, func() string, int) error
StartConnectionMgmtTicking(context.Context, func() string, int) error
// ProcessPendingConnections starts a function that continually processes
// incoming client connections. This only returns when the provided context
@@ -468,7 +468,7 @@ func (c *Controller) Start() error {
}()
go func() {
defer c.tickerWg.Done()
err := c.downstreamRoutes.StartRouteMgmtTicking(
err := c.downstreamRoutes.StartConnectionMgmtTicking(
c.baseContext,
servNameFn,
-1,
+2 -2
View File
@@ -26,7 +26,7 @@ import (
// the function that handles a secondary connection over a provided listener
var handleSecondaryConnection = closeListener
func closeListener(_ context.Context, l, _ net.Listener, _ any) error {
func closeListener(_ context.Context, l net.Listener, _ any) error {
if l != nil {
return l.Close()
}
@@ -244,7 +244,7 @@ func (c *Controller) configureForCluster(ln *base.ServerListener) (func(), error
return func() {
err := handleSecondaryConnection(c.baseContext, metric.InstrumentClusterTrackingListener(multiplexingReverseGrpcListener, "reverse-grpc"),
nil, c.downstreamRoutes)
c.downstreamRoutes)
if err != nil {
event.WriteError(c.baseContext, op, err, event.WithInfoMsg("handleSecondaryConnection error"))
}