Skip to content

Commit

Permalink
WIP: csds changes for xds fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed May 15, 2024
1 parent 0020ccf commit 975466e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xds/csds/csds.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func NewClientStatusDiscoveryServer() (*ClientStatusDiscoveryServer, error) {
return s, nil
}

// StreamClientStatus implementations interface ClientStatusDiscoveryServiceServer.
// StreamClientStatus implements interface ClientStatusDiscoveryServiceServer.
func (s *ClientStatusDiscoveryServer) StreamClientStatus(stream v3statusgrpc.ClientStatusDiscoveryService_StreamClientStatusServer) error {
for {
req, err := stream.Recv()
Expand All @@ -97,13 +97,13 @@ func (s *ClientStatusDiscoveryServer) StreamClientStatus(stream v3statusgrpc.Cli
}
}

// FetchClientStatus implementations interface ClientStatusDiscoveryServiceServer.
// FetchClientStatus implements interface ClientStatusDiscoveryServiceServer.
func (s *ClientStatusDiscoveryServer) FetchClientStatus(_ context.Context, req *v3statuspb.ClientStatusRequest) (*v3statuspb.ClientStatusResponse, error) {
return s.buildClientStatusRespForReq(req)
}

// buildClientStatusRespForReq fetches the status from the client, and returns
// the response to be sent back to xdsclient.
// buildClientStatusRespForReq fetches the status of xDS resources from the
// xdsclient, and returns the response to be sent back to the csds client.
//
// If it returns an error, the error is a status error.
func (s *ClientStatusDiscoveryServer) buildClientStatusRespForReq(req *v3statuspb.ClientStatusRequest) (*v3statuspb.ClientStatusResponse, error) {
Expand Down

0 comments on commit 975466e

Please sign in to comment.