Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

feat/implementation of parallel clients limit #103

Merged
merged 11 commits into from
Oct 30, 2021
3 changes: 2 additions & 1 deletion cqproto/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (g GRPCClient) FetchResources(ctx context.Context, request *FetchResourcesR
res, err := g.client.FetchResources(ctx, &internal.FetchResources_Request{
Resources: request.Resources,
PartialFetchingEnabled: request.PartialFetchingEnabled,
ParallelFetchingLimit: request.ParallelFetchingLimit,
})
if err != nil {
return nil, err
Expand Down Expand Up @@ -156,7 +157,7 @@ func (g *GRPCServer) ConfigureProvider(ctx context.Context, request *internal.Co
func (g *GRPCServer) FetchResources(request *internal.FetchResources_Request, server internal.Provider_FetchResourcesServer) error {
return g.Impl.FetchResources(
server.Context(),
&FetchResourcesRequest{Resources: request.GetResources(), PartialFetchingEnabled: request.PartialFetchingEnabled},
&FetchResourcesRequest{Resources: request.GetResources(), PartialFetchingEnabled: request.PartialFetchingEnabled, ParallelFetchingLimit: request.ParallelFetchingLimit},
&GRPCFetchResourcesServer{server: server},
)
}
Expand Down
Loading