chore: fix some typos in comments (#6951)

* chore: fix some typos in comments

Signed-off-by: StevenMia <flite@foxmail.com>

* Apply suggestions from code review

fix typo

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: StevenMia <flite@foxmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
This commit is contained in:
StevenMia
2024-04-17 11:09:48 +08:00
committed by GitHub
parent 02754e8136
commit 2bb0a59860
5 changed files with 5 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ public class IbftController extends BaseBftController {
* @param gossiper the gossiper
* @param duplicateMessageTracker the duplicate message tracker
* @param futureMessageBuffer the future message buffer
* @param sychronizerUpdater the sychronizer updater
* @param sychronizerUpdater the synchronizer updater
*/
public IbftController(
final Blockchain blockchain,

View File

@@ -48,7 +48,7 @@ public class QbftController extends BaseBftController {
* @param gossiper the gossiper
* @param duplicateMessageTracker the duplicate message tracker
* @param futureMessageBuffer the future message buffer
* @param sychronizerUpdater the sychronizer updater
* @param sychronizerUpdater the synchronizer updater
* @param bftExtraDataCodec the bft extra data codec
*/
public QbftController(

View File

@@ -461,7 +461,7 @@ public class EthPeer implements Comparable<EthPeer> {
*
* @param protocolName the type of protocol the message is for
* @param code the message code
* @return a request manager for the received response messsage, or Optional.empty() if this is a
* @return a request manager for the received response message, or Optional.empty() if this is a
* request message
*/
private Optional<RequestManager> getRequestManager(final String protocolName, final int code) {

View File

@@ -128,7 +128,7 @@ public class PeerDiscoveryTestHelper {
}
/**
* Starts multiple discovery agents with the provided boostrap peers.
* Starts multiple discovery agents with the provided bootstrap peers.
*
* @param count the number of agents to start
* @param bootstrapPeers the list of bootstrap peers

View File

@@ -300,7 +300,7 @@ public class PrometheusMetricsSystem implements ObservableMetricsSystem {
/**
* Convert to prometheus counter name. Prometheus adds a _total suffix to the name if not present,
* so we remember if the original name already has it, to be able to covert back correctly
* so we remember if the original name already has it, to be able to convert back correctly
*
* @param category the category
* @param name the name