Skip to content

Commit

Permalink
Use cluster info functions for tpu (#345) (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Oct 10, 2023
1 parent b884747 commit 169d249
Show file tree
Hide file tree
Showing 3 changed files with 277 additions and 23 deletions.
7 changes: 2 additions & 5 deletions core/src/proxy/fetch_stage_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ impl FetchStageManager {
tpu_address: SocketAddr,
tpu_forward_address: SocketAddr,
) -> Result<(), contact_info::Error> {
let mut new_contact_info = cluster_info.my_contact_info();
// TODO (LB): double check protocol!!!!!!
new_contact_info.set_tpu(tpu_address)?;
new_contact_info.set_tpu_forwards(tpu_forward_address)?;
cluster_info.set_my_contact_info(new_contact_info);
cluster_info.set_tpu(tpu_address)?;
cluster_info.set_tpu_forwards(tpu_forward_address)?;
Ok(())
}

Expand Down
Loading

0 comments on commit 169d249

Please sign in to comment.