From 8528e4c702412d44254dd02e2922076bdf165560 Mon Sep 17 00:00:00 2001 From: Greg Dallavalle Date: Mon, 16 Apr 2018 09:54:18 -0500 Subject: [PATCH] fix: update docs for incr_and_sum behavior --- dramatiq/rate_limits/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dramatiq/rate_limits/backend.py b/dramatiq/rate_limits/backend.py index efaf5190..ce08b868 100644 --- a/dramatiq/rate_limits/backend.py +++ b/dramatiq/rate_limits/backend.py @@ -64,8 +64,8 @@ def decr(self, key, amount, minimum, ttl): # pragma: no cover raise NotImplementedError def incr_and_sum(self, key, keys, amount, maximum, ttl): # pragma: no cover - """Atomically increment a key and return the sum of a set of - keys, unless the sum is greater than the given maximum. + """Atomically increment a key unless the sum of keys is greater + than the given maximum. Parameters: key(str): The key to increment.