Skip to content

Commit

Permalink
shorter extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrlvi committed Apr 2, 2022
1 parent 8d35083 commit c0bb2fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::env;
use time::{format_description, OffsetDateTime};

fn main() -> Result<(), Box<dyn std::error::Error>> {
let format = format_description::parse("[year][month][day][hour][minute][second]")?;
let format = format_description::parse("[year repr:last_two][month][day][hour][minute]")?;
let dt = OffsetDateTime::now_utc().format(&format)?;
//env::set_var("PACKAGE_COMPILE_TIME", dt);
println!("cargo:rustc-env=PACKAGE_COMPILE_TIME={}", dt);
Expand Down
2 changes: 1 addition & 1 deletion src/client/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use tokio_util::sync::{PollSendError, PollSender};
use tonic::{transport::Channel as TonicChannel, Streaming};

static EXTRA_DATA: &str =
concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"), "/", env!("PACKAGE_COMPILE_TIME"));
concat!(env!("CARGO_PKG_VERSION"), "/", env!("PACKAGE_COMPILE_TIME"));
static VERSION_UPDATE: &str = "0.11.15";
type BlockHandle = JoinHandle<Result<(), PollSendError<KaspadMessage>>>;

Expand Down

0 comments on commit c0bb2fe

Please sign in to comment.