This commit is contained in:
Bryan Stitt 2023-08-08 15:50:50 -07:00
parent 8ea587120b
commit 2a62dd4e47
3 changed files with 2 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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)