lint
This commit is contained in:
parent
8ea587120b
commit
2a62dd4e47
@ -41,7 +41,7 @@ impl CreateKeySubCommand {
|
||||
|
||||
info!("user #{}", u.id);
|
||||
|
||||
let rpc_secret_key = self.rpc_secret_key.unwrap_or_else(RpcSecretKey::new);
|
||||
let rpc_secret_key = self.rpc_secret_key.unwrap_or_default();
|
||||
|
||||
// create a key for the new user
|
||||
let uk = rpc_key::ActiveModel {
|
||||
|
@ -68,7 +68,7 @@ impl CreateUserSubCommand {
|
||||
Address::from_slice(u.address.as_ref())
|
||||
);
|
||||
|
||||
let rpc_secret_key = self.rpc_secret_key.unwrap_or_else(RpcSecretKey::new);
|
||||
let rpc_secret_key = self.rpc_secret_key.unwrap_or_default();
|
||||
|
||||
// create a key for the new user
|
||||
let uk = rpc_key::ActiveModel {
|
||||
|
@ -70,7 +70,6 @@ pub async fn user_get_influx_stats_aggregated(
|
||||
chain_id: u64,
|
||||
) -> serde_json::Value {
|
||||
let query_window_seconds = 300;
|
||||
let chain_id = chain_id;
|
||||
let start = SystemTime::now();
|
||||
let query_start = start
|
||||
.duration_since(UNIX_EPOCH)
|
||||
|
Loading…
Reference in New Issue
Block a user