Skip to content

Commit

Permalink
log created-at-time
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 committed Dec 21, 2023
1 parent 2773a35 commit a62e133
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dfx/src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ pub fn exec(env: &dyn Environment, opts: DeployOpts) -> DfxResult {
let call_sender = CallSender::from(&opts.wallet)
.map_err(|e| anyhow!("Failed to determine call sender: {}", e))?;
let created_at_time = opts.created_at_time.or_else(|| {
Some(
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_nanos() as u64,
)
let now = SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_nanos() as u64;
info!(env.get_logger(), "created-at-time is {now}.");
Some(now)
});

runtime.block_on(fetch_root_key_if_needed(&env))?;
Expand Down

0 comments on commit a62e133

Please sign in to comment.