()
| 46 | } |
| 47 | |
| 48 | fn get_counter() -> u32 { |
| 49 | let mut counter = COUNTER.lock().unwrap(); |
| 50 | *counter += 1; |
| 51 | *counter |
| 52 | } |
| 53 | |
| 54 | pub fn create(prefix: Prefix, descending: bool, timestamp: Option<u64>) -> String { |
| 55 | let current_timestamp = timestamp.unwrap_or_else(|| { |