Skip to content

Commit dceb837

Browse files
committed
remove whitespace from unique key json component
1 parent 273a641 commit dceb837

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/riverqueue/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,9 @@ def _build_unique_key_and_bitmask(
571571
key: args_dict[key] for key in unique_opts.by_args if key in args_dict
572572
}
573573

574-
# Serialize with sorted keys and append to unique key:
575-
sorted_args = json.dumps(args_to_include, sort_keys=True)
574+
# Serialize with sorted keys and append to unique key. Remove whitespace
575+
# from the JSON to match other implementations:
576+
sorted_args = json.dumps(args_to_include, sort_keys=True, separators=(",", ":"))
576577
unique_key += f"&args={sorted_args}"
577578

578579
if unique_opts.by_period:

0 commit comments

Comments
 (0)