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.options = kwargs['options']
|
||||
|
||||
@staticmethod
|
||||
def from_hmap(hmap):
|
||||
kwargs = _hmap_kv_to_subenv(hmap)
|
||||
return SubscriptionEnvelope(**kwargs)
|
||||
|
||||
@staticmethod
|
||||
def from_redis(sid, client):
|
||||
values = client.hmget(sid, SUBENV_FIELD_KEYS)
|
||||
|
Loading…
Reference in New Issue
Block a user