diff options
author | Victor Shyba <victor1984@riseup.net> | 2016-11-16 23:05:07 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-12-12 09:12:01 -0200 |
commit | 1be8f24264d7c0e9c8616faa64c206954fa5c342 (patch) | |
tree | bd0987e70f8120f84eeec17203a90bdf3ddc79ae /client/src | |
parent | d656f671b3784575ba4c5bf2a30478c98198a95c (diff) |
[refactor] better naming for producer calling
Giving the proper name to the function and arguments helps to make the
producer wizardry less magic.
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/leap/soledad/client/http_target/send_protocol.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/http_target/send_protocol.py b/client/src/leap/soledad/client/http_target/send_protocol.py index 63ce6b42..0cb6d039 100644 --- a/client/src/leap/soledad/client/http_target/send_protocol.py +++ b/client/src/leap/soledad/client/http_target/send_protocol.py @@ -56,7 +56,8 @@ class DocStreamProducer(object): yield self.sleep(0.001) continue call = self.producer.pop(0) - yield call[0](*call[1:]) + fun, args = call[0], call[1:] + yield fun(*args) consumer.write(self.body.pop(1, leave_open=True)) consumer.write(self.body.pop(0)) # close stream |