switchReplicationClient routes all replication calls to either gRPC or REST based on the useGRPC function, controlled by the replication_grpc_enabled runtime config.
| 30 | // switchReplicationClient routes all replication calls to either gRPC or REST |
| 31 | // based on the useGRPC function, controlled by the replication_grpc_enabled runtime config. |
| 32 | type switchReplicationClient struct { |
| 33 | grpcClient *grpcReplicationClient |
| 34 | restClient *replicationClient |
| 35 | useGRPC func() bool |
| 36 | } |
| 37 | |
| 38 | var _ (replica.Client) = (*switchReplicationClient)(nil) |
| 39 |
nothing calls this directly
no outgoing calls
no test coverage detected