Commit 64dec1c 1 parent 8003d4b commit 64dec1c Copy full SHA for 64dec1c
File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -272,9 +272,18 @@ macro_rules! intersect_starting_point {
272
272
Some ( cursor) => {
273
273
log:: info!( "found persisted cursor, will use as starting point" ) ;
274
274
let desired = cursor. try_into( ) ?;
275
- let ( point, _) = client. find_intersect( vec![ desired] ) ?;
276
-
277
- Ok ( point)
275
+ let res = client. find_intersect( vec![ desired] ) ;
276
+ match res {
277
+ Ok ( ( point, _) ) => Ok ( point) ,
278
+ Err ( e) => {
279
+ log:: error!(
280
+ "error finding intersect point from cursor - starting from tip: {:?}" ,
281
+ e
282
+ ) ;
283
+ let point = client. intersect_tip( ) ?;
284
+ return Ok ( Some ( point) ) ;
285
+ }
286
+ }
278
287
}
279
288
None => match intersect_arg {
280
289
Some ( IntersectArg :: Fallbacks ( x) ) => {
@@ -305,7 +314,6 @@ macro_rules! intersect_starting_point {
305
314
}
306
315
Some ( IntersectArg :: Tip ) => {
307
316
log:: info!( "found 'tip' intersect argument, will use as starting point" ) ;
308
-
309
317
let point = client. intersect_tip( ) ?;
310
318
311
319
Ok ( Some ( point) )
You can’t perform that action at this time.
0 commit comments