Skip to content

Commit

Permalink
simplify warm_quic_cache_service instantiation (#1063)
Browse files Browse the repository at this point in the history
* simplify warm_quic_cache_service instantiation

(cherry picked from commit d87e23d)

# Conflicts:
#	core/src/tvu.rs
  • Loading branch information
lijunwangs authored and mergify[bot] committed Apr 26, 2024
1 parent 89d3014 commit 4ecafdb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/src/tvu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ impl Tvu {
tower_storage,
);

<<<<<<< HEAD
let warm_quic_cache_service = if connection_cache.use_quic() {
Some(WarmQuicCacheService::new(
connection_cache.clone(),
Expand All @@ -277,6 +278,21 @@ impl Tvu {
} else {
None
};
=======
let warm_quic_cache_service = connection_cache.and_then(|connection_cache| {
if connection_cache.use_quic() {
Some(WarmQuicCacheService::new(
connection_cache.clone(),
cluster_info.clone(),
poh_recorder.clone(),
exit.clone(),
))
} else {
None
}
});

>>>>>>> d87e23d8d9 (simplify warm_quic_cache_service instantiation (#1063))
let (cost_update_sender, cost_update_receiver) = unbounded();
let cost_update_service = CostUpdateService::new(blockstore.clone(), cost_update_receiver);

Expand Down

0 comments on commit 4ecafdb

Please sign in to comment.