1
0
mirror of https://github.com/actix/examples synced 2025-02-17 07:23:29 +01:00

Update db.rs

This commit is contained in:
Darin 2018-06-01 06:59:07 -04:00 committed by GitHub
parent e1c5eedeee
commit a39cd8ed9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
use actix::prelude::*;
use actix_web::*;
use std::{time::Duration, thread::sleep};
use failure::Error;
use r2d2;
@ -133,4 +132,4 @@ fn get_coldest_months(conn: Connection) -> Result<Vec<WeatherAgg>, Error> {
sleep(Duration::from_secs(2));
Ok(annuals)
}
}