mirror of
https://github.com/django/daphne.git
synced 2025-04-21 17:22:03 +03:00
fix uuid generation
This commit is contained in:
parent
cadae8346a
commit
503c5fd54b
|
@ -32,7 +32,7 @@ class RedisChannelBackend(BaseChannelBackend):
|
|||
channel = channel.decode('utf-8')
|
||||
|
||||
# Write out message into expiring key (avoids big items in list)
|
||||
key = self.prefix + uuid.uuid4().get_hex()
|
||||
key = self.prefix + str(uuid.uuid4())
|
||||
self.connection.set(
|
||||
key,
|
||||
json.dumps(message),
|
||||
|
|
Loading…
Reference in New Issue
Block a user