cleanup and http proxy
This commit is contained in:
@@ -46,7 +46,6 @@ type SyncedPool struct {
|
||||
type RemoteHostGRPC struct {
|
||||
Host string
|
||||
Conn *grpc.ClientConn
|
||||
CartClient proto.CartActorClient
|
||||
ControlClient proto.ControlPlaneClient
|
||||
MissedPings int
|
||||
}
|
||||
@@ -152,7 +151,6 @@ func (p *SyncedPool) AddRemote(host string) {
|
||||
return
|
||||
}
|
||||
|
||||
cartClient := proto.NewCartActorClient(conn)
|
||||
controlClient := proto.NewControlPlaneClient(conn)
|
||||
|
||||
// Health check (Ping) with limited retries
|
||||
@@ -174,9 +172,9 @@ func (p *SyncedPool) AddRemote(host string) {
|
||||
}
|
||||
|
||||
remote := &RemoteHostGRPC{
|
||||
Host: host,
|
||||
Conn: conn,
|
||||
CartClient: cartClient,
|
||||
Host: host,
|
||||
Conn: conn,
|
||||
|
||||
ControlClient: controlClient,
|
||||
MissedPings: 0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user