Remove __enter__ and __exit__ methods from Enforcer
Originally, we wanted oslo.limit's Enforcer object to be a context manager to make it easier to abstract logic to protect against resource race conditions. Since verification logic isn't going to be implemented right away, we can just focus on a single method for enforcement instead, making it easier to adopt. Subsequent patches are going to introduce a new enforcement interface for oslo.limit. Change-Id: I3a1e58cb18a498bca67f36c76d8e8c8c4fb80083
This commit is contained in:
parent
8bf64bb278
commit
5db5a5930a
|
@ -37,9 +37,3 @@ class Enforcer(object):
|
|||
|
||||
self.deltas = deltas
|
||||
self.callback = callback
|
||||
|
||||
def __enter__(self):
|
||||
pass
|
||||
|
||||
def __exit__(self, *args):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue