You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: manager.rs
    path of file: ./repos/CYFS/src/component/cyfs-bdt/src/sn/service/statistic
    
    the code of the file until where you have to start completion: 
use std::{sync::{RwLock, Arc}, collections::{BTreeMap, }, time::Duration};

use cyfs_base::{DeviceId, bucky_time_now, SocketAddr, };
use cyfs_util::SqliteStorage;
use once_cell::sync::OnceCell;

use crate::Timestamp;

use super::{PeerStatus, };

const CACHE_
    
    fn new() -> Self {
        let ret = Self(Arc::new(RwLock::new(StatisticManagerImpl{
            storage: None,
            last_cache_timestamp: bucky_time_now(),
            statistics: BTreeMap::new(),
        })));

        let arc_ret = ret.clone();
        async_std::task::spawn(async move {
            let mut storage = SqliteStorage::new();
            match storage.init("sn-statistic").await {
                Ok(_) => {
                    arc_ret.0.write().unwrap()
                        .storage = Some(Arc::new(storage));
                }
                Err(err) => {
                    error!("failed to init statistic-db with err = {}", err);
                }
            }
        });

        ret
       
    }