Merge "Remove the useless function"
This commit is contained in:
commit
ff67ea2c87
@ -125,11 +125,6 @@ class SubscriptionEnvelope(object):
|
|||||||
self.expires = kwargs.get('expires', float('inf'))
|
self.expires = kwargs.get('expires', float('inf'))
|
||||||
self.options = kwargs['options']
|
self.options = kwargs['options']
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def from_hmap(hmap):
|
|
||||||
kwargs = _hmap_kv_to_subenv(hmap)
|
|
||||||
return SubscriptionEnvelope(**kwargs)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_redis(sid, client):
|
def from_redis(sid, client):
|
||||||
values = client.hmget(sid, SUBENV_FIELD_KEYS)
|
values = client.hmget(sid, SUBENV_FIELD_KEYS)
|
||||||
|
Loading…
Reference in New Issue
Block a user