Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Feb 3, 2025
1 parent 1bf1b8b commit 061731f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/request-response/request_response_subscription_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,17 @@ static void s_match_wildcard_stream_subscriptions(
break;
}

if (!aws_byte_cursor_eq_c_str(&subscription_topic_filter_segment, "+") &&
!aws_byte_cursor_eq_ignore_case(&topic_segment, &subscription_topic_filter_segment)) {
match = false;
break;
}

if (aws_byte_cursor_eq_c_str(&subscription_topic_filter_segment, "#")) {
multi_level_wildcard = true;
match = true;
break;
}

if (!aws_byte_cursor_eq_c_str(&subscription_topic_filter_segment, "+") &&
!aws_byte_cursor_eq_ignore_case(&topic_segment, &subscription_topic_filter_segment)) {
match = false;
break;
}
}

if (!multi_level_wildcard && aws_byte_cursor_next_split(&publish_event->topic, '/', &topic_segment)) {
Expand Down

0 comments on commit 061731f

Please sign in to comment.