mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
code review cleanup
This commit is contained in:
parent
12882ad147
commit
02d3d24bc5
2 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue