Rename remaining ones to replay_vote_{sender,receiver}#29716
Conversation
|
ick yeah I made a mess here with the naming. So both from I named the type |
Okay, I'll revisit this whole rename after banking tracer. Firstly, I want to merge the tracer to be backported. |
apfitzge
left a comment
There was a problem hiding this comment.
Typos should be fixed, but otherwise looks good to me.
Fine to re-evaluate the naming at a later point, but making it consistent with the typename makes things more clear immediately imo.
| let cluster_info = new_test_cluster_info(Node::new_localhost().info); | ||
| let cluster_info = Arc::new(cluster_info); | ||
| let (gossip_vote_sender, _gossip_vote_receiver) = unbounded(); | ||
| let (replay_vote_sender, _repaly_vote_receiver) = unbounded(); |
There was a problem hiding this comment.
minor typo:
| let (replay_vote_sender, _repaly_vote_receiver) = unbounded(); | |
| let (replay_vote_sender, _replay_vote_receiver) = unbounded(); |
There was a problem hiding this comment.
looks like all the remaining similar assignments have this typo, probably copy-pasted 😄
There was a problem hiding this comment.
ugh, thanks for checking my sanity...: 631144c ;)
Pull request has been modified.
(no rush; no need to work on weekend)
Problem
There's remaining instances of stale variable names for the type of
ReplayVote{Sender/Receiver}.hmm, actually, i found that it's not stale after some
git logunfolding.... it seems that the var name and type name were inconsistent since the beginning...: https://github.com/solana-labs/solana/pull/11434/files#r1070596384 (#11434)....(
I think it's a bit off that we call this type as
*Replay*Vote{Sender,Receiver}considering its usage inside BankingStage. yet again*gossip*_vote_{sender,receiver}is misnomer too, considering it's not only gossip but all of committed votes in banking stage is sent over the channel (including vote tpu, non-vote tpu origins).... Fixing this is out of scope, I'll just align all to type names.... cc: @carllinhehe, it's so tempting to rename them all to
CommittedVote{Sender,Receiver}. but I'm quite deep at buffered prs. T_T)
Namely, I want to use
gossip_vote_senderin #29196, but it's currently squatted by the stale variables here and there.Summary of Changes
Rename 'em all with this preparatory pr to ease review of #29196.
Fixes #