Skip to content

Commit 85009b0

Browse files
authored
Fix typos in Grafana dashboard and update test function in linera_net_tests.rs (#4110)
Description: This pull request addresses the following changes: - Corrects the typo "avarage" to "average" in the description fields of the Grafana dashboard JSON for Scylla Alternator. - Updates the test in linera_net_tests.rs by renaming the method call from set_preferred_owner to set_preferred_owner (fixing the function name to match the correct one). --------- Signed-off-by: FT <[email protected]>
1 parent cf6ecba commit 85009b0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

kubernetes/linera-validator/grafana-dashboards/scylla/scylla-alternator.6.2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3313,7 +3313,7 @@
33133313
"type": "prometheus",
33143314
"uid": "prometheus"
33153315
},
3316-
"description": "The avarage batch size of BatchWriteItem",
3316+
"description": "The average batch size of BatchWriteItem",
33173317
"editable": true,
33183318
"error": false,
33193319
"fieldConfig": {
@@ -3635,7 +3635,7 @@
36353635
"type": "prometheus",
36363636
"uid": "prometheus"
36373637
},
3638-
"description": "The avarage batch size of BatchGetItem",
3638+
"description": "The average batch size of BatchGetItem",
36393639
"editable": true,
36403640
"error": false,
36413641
"fieldConfig": {
@@ -7154,4 +7154,4 @@
71547154
"uid": "alternator-6-2",
71557155
"version": 1,
71567156
"weekStart": ""
7157-
}
7157+
}

linera-service/src/cli_wrappers/wallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ impl ClientWrapper {
10041004
}
10051005

10061006
/// Runs `linera set-preferred-owner` for `chain_id`.
1007-
pub async fn set_preffered_owner(
1007+
pub async fn set_preferred_owner(
10081008
&self,
10091009
chain_id: ChainId,
10101010
owner: Option<AccountOwner>,

linera-service/tests/linera_net_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3540,7 +3540,7 @@ async fn test_end_to_end_change_ownership(config: impl LineraNetConfig) -> Resul
35403540

35413541
// Make owner2 the only (super) owner.
35423542
client.change_ownership(chain, vec![owner2], vec![]).await?;
3543-
client.set_preffered_owner(chain, Some(owner2)).await?;
3543+
client.set_preferred_owner(chain, Some(owner2)).await?;
35443544
// Now we're not the owner anymore.
35453545
let result = client.change_ownership(chain, vec![], vec![owner1]).await;
35463546
assert_matches::assert_matches!(result, Err(_));

0 commit comments

Comments
 (0)