viff

changeset 1314:6bbe043fe837

active: removed unnecessary schedule_callback
author Martin Geisler <mg@cs.au.dk>
date Thu, 22 Oct 2009 12:52:09 +0200
parents 81be1830f33e
children a0c405e7b2f8
files viff/active.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/viff/active.py	Wed Oct 21 11:03:58 2009 +0200
     1.2 +++ b/viff/active.py	Thu Oct 22 12:52:09 2009 +0200
     1.3 @@ -256,7 +256,7 @@
     1.4                      else:
     1.5                          si.append(self._expect_share(peer_id, field))
     1.6                  result = gatherResults(si)
     1.7 -                self.schedule_callback(result, verify)
     1.8 +                result.addCallback(verify)
     1.9                  return result
    1.10              else:
    1.11                  # We cannot verify anything, so we just return the
    1.12 @@ -358,7 +358,7 @@
    1.13                          si_1.append(self._expect_share(peer_id, field))
    1.14                          si_2.append(self._expect_share(peer_id, field))
    1.15                  result = gatherResults([gatherResults(si_1), gatherResults(si_2)])
    1.16 -                self.schedule_callback(result, verify)
    1.17 +                result.addCallback(verify)
    1.18                  return result
    1.19              else:
    1.20                  # We cannot verify anything, so we just return the