code review cleanup

This commit is contained in:
Seebs 2021-09-27 11:58:30 -05:00
parent 12882ad147
commit 02d3d24bc5
2 changed files with 1 additions and 5 deletions

View file

@ -1567,8 +1567,7 @@ func (c *cluster) translateIndexKeys(ctx context.Context, indexName string, keys
return ids, nil
}
// This implements ingest's key translator interface on a cluster/index
// pair.
// This implements ingest's key translator interface on a cluster/index pair.
type clusterKeyTranslator struct {
ctx context.Context // we're created within a request context and need to pass that to cluster ops
c *cluster

View file

@ -958,9 +958,6 @@ func (s Serializer) encodeShardedIngestRequest(req *ingest.ShardedRequest) *pb.S
func (s Serializer) encodeShardIngestOperations(ops []*ingest.Operation) *pb.ShardIngestOperations {
out := &pb.ShardIngestOperations{}
if len(ops) == 0 {
return out
}
for _, op := range ops {
if op == nil {
continue