don't let encoding push the routing key over the max length
This commit is contained in:
parent
1f290e278c
commit
40423461db
1 changed files with 1 additions and 1 deletions
|
|
@ -89,8 +89,8 @@ def get_routing_key(cbtype, *args, **kws):
|
|||
# ensure the routing key is an ascii string with a maximum
|
||||
# length of 255 characters
|
||||
key = '.'.join(key)
|
||||
key = key[:MAX_KEY_LENGTH]
|
||||
key = key.encode('ascii', 'xmlcharrefreplace')
|
||||
key = key[:MAX_KEY_LENGTH]
|
||||
return key
|
||||
|
||||
def encode_data(data):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue