File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 57
57
toolchain : ${{ matrix.rust }}
58
58
override : true
59
59
60
- - name : check
61
- uses : actions-rs/cargo@v1
62
- with :
63
- command : check
64
- args : --all --bins --examples
65
-
66
60
- name : check avoid-dev-deps
67
61
uses : actions-rs/cargo@v1
68
62
if : matrix.rust == 'nightly'
Original file line number Diff line number Diff line change @@ -199,11 +199,14 @@ impl MySqlSessionStore {
199
199
/// # Ok(()) }) }
200
200
/// ```
201
201
#[ cfg( feature = "async_std" ) ]
202
- pub fn spawn_cleanup_task ( & self , period : std:: time:: Duration ) -> task:: JoinHandle < ( ) > {
202
+ pub fn spawn_cleanup_task (
203
+ & self ,
204
+ period : std:: time:: Duration ,
205
+ ) -> async_std:: task:: JoinHandle < ( ) > {
203
206
let store = self . clone ( ) ;
204
- task:: spawn ( async move {
207
+ async_std :: task:: spawn ( async move {
205
208
loop {
206
- task:: sleep ( period) . await ;
209
+ async_std :: task:: sleep ( period) . await ;
207
210
if let Err ( error) = store. cleanup ( ) . await {
208
211
log:: error!( "cleanup error: {}" , error) ;
209
212
}
You can’t perform that action at this time.
0 commit comments