@@ -397,7 +397,7 @@ impl Step3 {
397
397
///
398
398
/// LUC *OR* policy: "Local" irises match if either side matches.
399
399
///
400
- /// Intra-batch *OR * policy: match against requests before this request in the same batch.
400
+ /// Intra-batch *AND * policy: match against requests before this request in the same batch.
401
401
///
402
402
/// Partial matches: set `eyes: Only(Left)` or `eyes: Only(Right)`.
403
403
///
@@ -449,7 +449,7 @@ impl Filter {
449
449
}
450
450
451
451
fn intra_rule ( & self , left : bool , right : bool ) -> bool {
452
- self . intra_batch && self . luc_rule ( left, right)
452
+ self . intra_batch && self . search_rule ( left, right)
453
453
}
454
454
}
455
455
#[ cfg( test) ]
@@ -549,10 +549,10 @@ mod tests {
549
549
#[ test]
550
550
fn test_intra_rule ( ) {
551
551
for x in [ false , true ] {
552
- // Matching within a batch: OR rule.
553
- assert_eq ! ( FILTER_INTRA . intra_rule( true , x) , true ) ;
554
- assert_eq ! ( FILTER_INTRA . intra_rule( x, true ) , true ) ;
555
- assert_eq ! ( FILTER_INTRA . intra_rule( false , false ) , false ) ;
552
+ // Matching within a batch: AND rule.
553
+ assert_eq ! ( FILTER_INTRA . intra_rule( false , x) , false ) ;
554
+ assert_eq ! ( FILTER_INTRA . intra_rule( x, false ) , false ) ;
555
+ assert_eq ! ( FILTER_INTRA . intra_rule( true , true ) , true ) ;
556
556
557
557
// If intra-batch is not requested, always false.
558
558
for y in [ false , true ] {
0 commit comments