mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
cli: fix display_role helper (#3961)
This commit is contained in:
@@ -239,7 +239,7 @@ where
|
|||||||
/// Returns a string displaying the node role, special casing the sentry mode
|
/// Returns a string displaying the node role, special casing the sentry mode
|
||||||
/// (returning `SENTRY`), since the node technically has an `AUTHORITY` role but
|
/// (returning `SENTRY`), since the node technically has an `AUTHORITY` role but
|
||||||
/// doesn't participate.
|
/// doesn't participate.
|
||||||
pub fn display_role<A, B>(config: &Configuration<(), A, B>) -> String {
|
pub fn display_role<A, B, C>(config: &Configuration<A, B, C>) -> String {
|
||||||
if config.sentry_mode {
|
if config.sentry_mode {
|
||||||
"SENTRY".to_string()
|
"SENTRY".to_string()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user