Skip to content

Commit

Permalink
removing redundant map
Browse files Browse the repository at this point in the history
Signed-off-by: limbooverlambda <[email protected]>
  • Loading branch information
limbooverlambda committed Jun 26, 2024
1 parent 463024c commit 390e7c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/raw/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ impl Shardable for kvrpcpb::RawBatchPutRequest {
.map(|(kv, ttl)| KvPairTTL(kv.clone(), ttl))
.collect();
kv_ttl.sort_by(|a, b| a.0.key.clone().cmp(&b.0.key));
store_stream_for_keys(kv_ttl.into_iter(), pd_client.clone())
.map(move |r| {
r.map(|(kv, store): (Vec<(kvrpcpb::KvPair, u64)>, RegionStore)| (kv, store))
})
.boxed()
store_stream_for_keys(kv_ttl.into_iter(), pd_client.clone()).boxed()
}

fn apply_shard(&mut self, shard: Self::Shard, store: &RegionStore) -> Result<()> {
Expand Down

0 comments on commit 390e7c7

Please sign in to comment.