Skip to content

Commit

Permalink
Merge "fix: one less unnecessary modification"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Oct 21, 2013
2 parents 64ec63b + 503402b commit 3e0ffc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions marconi/queues/storage/mongodb/claims.py
Expand Up @@ -87,15 +87,15 @@ def messages(msg_iter):
update_time = claim['e'] - claim['t']
age = now - update_time

claim = {
claim_meta = {
'age': int(age),
'ttl': claim.pop('t'),
'ttl': claim['t'],
'id': str(claim['id']),
}
except StopIteration:
raise exceptions.ClaimDoesNotExist(cid, queue, project)

return (claim, msgs)
return (claim_meta, msgs)

@utils.raises_conn_error
def create(self, queue, metadata, project=None, limit=None):
Expand Down

0 comments on commit 3e0ffc4

Please sign in to comment.