@@ -125,7 +125,7 @@ impl Queue {
125
125
let client = Client :: open ( self . url . as_str ( ) ) ?;
126
126
let conn = client. get_connection ( ) ?;
127
127
128
- conn. del ( format ! ( "{}:uuids" , self . name) ) ?;
128
+ let _ : ( ) = conn. del ( format ! ( "{}:uuids" , self . name) ) ?;
129
129
130
130
Ok ( ( ) )
131
131
}
@@ -144,10 +144,10 @@ impl Queue {
144
144
145
145
let job = Job :: new ( args) ;
146
146
147
- conn. set_ex ( format ! ( "{}:{}" , self . name, job. uuid) ,
148
- serde_json:: to_string ( & job) ?,
149
- expire) ?;
150
- conn. rpush ( format ! ( "{}:uuids" , self . name) , & job. uuid ) ?;
147
+ let _ : ( ) = conn. set_ex ( format ! ( "{}:{}" , self . name, job. uuid) ,
148
+ serde_json:: to_string ( & job) ?,
149
+ expire) ?;
150
+ let _ : ( ) = conn. rpush ( format ! ( "{}:uuids" , self . name) , & job. uuid ) ?;
151
151
152
152
Ok ( job. uuid )
153
153
}
@@ -230,7 +230,7 @@ impl Queue {
230
230
let mut job: Job = serde_json:: from_str ( & json) ?;
231
231
232
232
job. status = Status :: RUNNING ;
233
- conn. set_ex ( & key, serde_json:: to_string ( & job) ?, timeout + expire) ?;
233
+ let _ : ( ) = conn. set_ex ( & key, serde_json:: to_string ( & job) ?, timeout + expire) ?;
234
234
235
235
let ( tx, rx) = channel ( ) ;
236
236
let cafun = afun. clone ( ) ;
@@ -256,7 +256,7 @@ impl Queue {
256
256
if job. status == Status :: RUNNING {
257
257
job. status = Status :: LOST ;
258
258
}
259
- conn. set_ex ( & key, serde_json:: to_string ( & job) ?, expire) ?;
259
+ let _ : ( ) = conn. set_ex ( & key, serde_json:: to_string ( & job) ?, expire) ?;
260
260
261
261
if fall && job. status == Status :: LOST {
262
262
panic ! ( "LOST" ) ;
0 commit comments