idgenerator-thin 0.2.1

Shorter ID and faster generation with a new snowflake drift algorithm. The core is to shorten the ID length, but also can have a very high instantaneous concurrent processing capacity (50W/0.1s), and powerful configuration capacity.
Documentation
/*
 * 版权属于:yitter(yitter@126.com)
 * 开源地址:https://github.com/yitter/idgenerator
 */
use crate::idgen::*;

// static mut instance2: Option<Arc<Mutex<SnowWorkerM1>>> = None;

pub struct DefaultIdGenerator {
    pub worker: SnowWorkerM1,
}

impl Default for DefaultIdGenerator {
    fn default() -> Self {
        DefaultIdGenerator { worker: SnowWorkerM1::default() }
    }
}

// impl DefaultIdGenerator {
//     pub fn default() -> DefaultIdGenerator {
//         DefaultIdGenerator { worker: SnowWorkerM1::default() }
//     }
// }