2021-08-31 15:01:46 +00:00
|
|
|
pub mod future;
|
2021-10-03 06:05:15 +00:00
|
|
|
pub mod retry;
|
2021-07-10 16:07:37 +00:00
|
|
|
|
2022-02-08 06:57:16 +00:00
|
|
|
#[cfg(feature = "pb_gen")]
|
2022-02-09 01:57:03 +00:00
|
|
|
pub mod pb;
|
|
|
|
|
|
|
|
#[cfg(feature = "proto_gen")]
|
2022-02-09 10:17:06 +00:00
|
|
|
pub mod proto_gen;
|
2022-02-08 06:36:59 +00:00
|
|
|
|
2021-09-14 08:22:44 +00:00
|
|
|
#[allow(dead_code)]
|
2022-01-23 04:14:00 +00:00
|
|
|
pub fn uuid_string() -> String {
|
|
|
|
uuid::Uuid::new_v4().to_string()
|
|
|
|
}
|
2021-09-14 08:22:44 +00:00
|
|
|
|
|
|
|
#[allow(dead_code)]
|
2022-01-23 04:14:00 +00:00
|
|
|
pub fn timestamp() -> i64 {
|
|
|
|
chrono::Utc::now().timestamp()
|
|
|
|
}
|