Skip to content

Commit 0ef7e88

Browse files
authored
chore:(docs) fix comments errors in codebase (#48)
* qos_service.rs * bench.rs * spend_utils.rs * buildkite-pipeline-in-disk.sh * leader_slot_banking_stage_metrics.rs * makeWebsocketUrl.ts
1 parent d4774fb commit 0ef7e88

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bench-tps/src/bench.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155
// Move on to next chunk
156156
self.chunk_index = (self.chunk_index + 1) % self.account_chunks.source.len();
157157

158-
// Switch directions after transfering for each "chunk"
158+
// Switch directions after transferring for each "chunk"
159159
if self.chunk_index == 0 {
160160
self.reclaim_lamports_back_to_source_account =
161161
!self.reclaim_lamports_back_to_source_account;

ci/buildkite-pipeline-in-disk.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ affects() {
4242
# the worse (affected)
4343
return 0
4444
fi
45-
# Assume everyting needs to be tested when any Dockerfile changes
45+
# Assume everything needs to be tested when any Dockerfile changes
4646
for pattern in ^ci/docker-rust/Dockerfile ^ci/docker-rust-nightly/Dockerfile "$@"; do
4747
if [[ ${pattern:0:1} = "!" ]]; then
4848
for file in "${affected_files[@]}"; do

cli/src/spend_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ where
161161
dummy_message.recent_blockhash = *blockhash;
162162
get_fee_for_messages(rpc_client, &[&dummy_message])?
163163
}
164-
None => 0, // Offline, cannot calulate fee
164+
None => 0, // Offline, cannot calculate fee
165165
};
166166

167167
match amount {

core/src/leader_slot_banking_stage_metrics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub(crate) struct ProcessTransactionsSummary {
4444
// Total amount of time spent running the cost model
4545
pub cost_model_us: u64,
4646

47-
// Breakdown of time spent executing and comitting transactions
47+
// Breakdown of time spent executing and committing transactions
4848
pub execute_and_commit_timings: LeaderExecuteAndCommitTimings,
4949

5050
// Breakdown of all the transaction errors from transactions passed for execution

core/src/qos_service.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ mod tests {
653653
}
654654

655655
#[test]
656-
fn test_update_or_remove_transaction_costs_commited() {
656+
fn test_update_or_remove_transaction_costs_committed() {
657657
solana_logger::setup();
658658
let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10);
659659
let bank = Arc::new(Bank::new_for_tests(&genesis_config));

web3.js/src/util/makeWebsocketUrl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function makeWebsocketUrl(endpoint: string) {
88
url.host = '';
99

1010
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
11-
// is explictly specifying the endpoint port (HTTP-based RPC), assuming
11+
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
1212
// we're directly trying to connect to solana-validator's ws listening port.
1313
// When the endpoint omits the port, we're connecting to the protocol
1414
// default ports: http(80) or https(443) and it's assumed we're behind a reverse

0 commit comments

Comments
 (0)