Rename router to receiver for secondary connections (#2816)
This commit is contained in:
5 files changed
+23
-23
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user