@@ -39,7 +39,7 @@ impl RunnableJob for ExpireInactiveSessionsJob {
39
39
repo. queue_job ( )
40
40
. schedule_job (
41
41
& mut rng,
42
- & clock,
42
+ clock,
43
43
ExpireInactiveOAuthSessionsJob :: new ( now - ttl) ,
44
44
)
45
45
. await
@@ -50,7 +50,7 @@ impl RunnableJob for ExpireInactiveSessionsJob {
50
50
repo. queue_job ( )
51
51
. schedule_job (
52
52
& mut rng,
53
- & clock,
53
+ clock,
54
54
ExpireInactiveCompatSessionsJob :: new ( now - ttl) ,
55
55
)
56
56
. await
@@ -61,7 +61,7 @@ impl RunnableJob for ExpireInactiveSessionsJob {
61
61
repo. queue_job ( )
62
62
. schedule_job (
63
63
& mut rng,
64
- & clock,
64
+ clock,
65
65
ExpireInactiveUserSessionsJob :: new ( now - ttl) ,
66
66
)
67
67
. await
@@ -104,7 +104,7 @@ impl RunnableJob for ExpireInactiveOAuthSessionsJob {
104
104
if let Some ( job) = self . next ( & page) {
105
105
tracing:: info!( "Scheduling job to expire the next batch of inactive sessions" ) ;
106
106
repo. queue_job ( )
107
- . schedule_job ( & mut rng, & clock, job)
107
+ . schedule_job ( & mut rng, clock, job)
108
108
. await
109
109
. map_err ( JobError :: retry) ?;
110
110
}
@@ -117,7 +117,7 @@ impl RunnableJob for ExpireInactiveOAuthSessionsJob {
117
117
repo. queue_job ( )
118
118
. schedule_job_later (
119
119
& mut rng,
120
- & clock,
120
+ clock,
121
121
SyncDevicesJob :: new_for_id ( user_id) ,
122
122
clock. now ( ) + delay,
123
123
)
@@ -128,7 +128,7 @@ impl RunnableJob for ExpireInactiveOAuthSessionsJob {
128
128
}
129
129
130
130
repo. oauth2_session ( )
131
- . finish ( & clock, edge)
131
+ . finish ( clock, edge)
132
132
. await
133
133
. map_err ( JobError :: retry) ?;
134
134
}
@@ -168,7 +168,7 @@ impl RunnableJob for ExpireInactiveCompatSessionsJob {
168
168
if let Some ( job) = self . next ( & page) {
169
169
tracing:: info!( "Scheduling job to expire the next batch of inactive sessions" ) ;
170
170
repo. queue_job ( )
171
- . schedule_job ( & mut rng, & clock, job)
171
+ . schedule_job ( & mut rng, clock, job)
172
172
. await
173
173
. map_err ( JobError :: retry) ?;
174
174
}
@@ -180,7 +180,7 @@ impl RunnableJob for ExpireInactiveCompatSessionsJob {
180
180
repo. queue_job ( )
181
181
. schedule_job_later (
182
182
& mut rng,
183
- & clock,
183
+ clock,
184
184
SyncDevicesJob :: new_for_id ( edge. user_id ) ,
185
185
clock. now ( ) + delay,
186
186
)
@@ -190,7 +190,7 @@ impl RunnableJob for ExpireInactiveCompatSessionsJob {
190
190
}
191
191
192
192
repo. compat_session ( )
193
- . finish ( & clock, edge)
193
+ . finish ( clock, edge)
194
194
. await
195
195
. map_err ( JobError :: retry) ?;
196
196
}
@@ -223,14 +223,14 @@ impl RunnableJob for ExpireInactiveUserSessionsJob {
223
223
if let Some ( job) = self . next ( & page) {
224
224
tracing:: info!( "Scheduling job to expire the next batch of inactive sessions" ) ;
225
225
repo. queue_job ( )
226
- . schedule_job ( & mut rng, & clock, job)
226
+ . schedule_job ( & mut rng, clock, job)
227
227
. await
228
228
. map_err ( JobError :: retry) ?;
229
229
}
230
230
231
231
for edge in page. edges {
232
232
repo. browser_session ( )
233
- . finish ( & clock, edge)
233
+ . finish ( clock, edge)
234
234
. await
235
235
. map_err ( JobError :: retry) ?;
236
236
}
0 commit comments