Skip to content

Commit

Permalink
Merge c683b68 into 074f33e
Browse files Browse the repository at this point in the history
  • Loading branch information
er0k committed Feb 20, 2020
2 parents 074f33e + c683b68 commit 9e662c4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions limits/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,17 +542,11 @@ def __init__(self, uri, service_name=None, **options):
password=password,
**options
)
self.storage = self.sentinel.master_for(self.service_name)
self.storage_slave = self.sentinel.slave_for(self.service_name)
self.initialize_storage(uri)
super(RedisStorage, self).__init__()

@property
def storage(self):
return self.sentinel.master_for(self.service_name)

@property
def storage_slave(self):
return self.sentinel.slave_for(self.service_name)

def get(self, key):
"""
:param str key: the key to get the counter value for
Expand Down

0 comments on commit 9e662c4

Please sign in to comment.