GCC Code Coverage Report


Directory: src/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 3 / 0 / 3
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 1 / 0 / 2

ps/grpc/dist_grpc_ps_client.h
Line Branch Exec Source
1 #pragma once
2
3 #include "base/json.h"
4 #include "ps/base/dist_sharded_client.h"
5 #include "grpc_ps_client.h"
6
7 using json = nlohmann::json;
8
9 namespace recstore {
10
11 /**
12 * @brief Distributed gRPC parameter-server client
13 *
14 * Many-to-many connections; routes keys to shards via a hash function.
15 * Server list and hash method come from JSON config. All logic lives in
16 * DistributedShardedClient<GRPCParameterClient>.
17 */
18 class DistributedGRPCParameterClient
19 : public DistributedShardedClient<GRPCParameterClient> {
20 public:
21 16 explicit DistributedGRPCParameterClient(json config)
22 16 : DistributedShardedClient<GRPCParameterClient>(std::move(config),
23
1/2
✓ Branch 3 taken 16 times.
✗ Branch 4 not taken.
16 "GRPC") {}
24 };
25
26 } // namespace recstore
27