Skip to content

Commit

Permalink
sort by traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed Sep 19, 2024
1 parent c46ae77 commit bfc3ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const matcherBlock: Block<
result ??= matcherFunc(ctx);
} else {
hasher.hash(uniqueId);
const cookieName = `${DECO_MATCHER_PREFIX}${hasher.result()}`;
const cookieName = `${DECO_MATCHER_PREFIX}${hasher.result()}_${($live as {traffic: number})?.traffic}`;
hasher.reset();
const isMatchFromCookie = cookieValue.boolean(
getCookies(ctx.request.headers)[cookieName],
Expand Down

0 comments on commit bfc3ed3

Please sign in to comment.