diff --git a/keystone/trust/backends/sql.py b/keystone/trust/backends/sql.py index 378fa57769..1356f4ec67 100644 --- a/keystone/trust/backends/sql.py +++ b/keystone/trust/backends/sql.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -import time - from oslo_utils import timeutils from six.moves import range @@ -116,10 +114,6 @@ class Trust(base.TrustDriverBase): break else: raise exception.TrustUseLimitReached(trust_id=trust_id) - # NOTE(morganfainberg): Ensure we have a yield point for eventlet - # here. This should cost us nothing otherwise. This can be removed - # if/when oslo_db cleanly handles yields on db calls. - time.sleep(0) else: # NOTE(morganfainberg): In the case the for loop is not prematurely # broken out of, this else block is executed. This means the trust