summaryrefslogtreecommitdiff
path: root/contrib/async-test/test-leaf.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/async-test/test-leaf.py')
-rwxr-xr-xcontrib/async-test/test-leaf.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/async-test/test-leaf.py b/contrib/async-test/test-leaf.py
index 8b7c3e3f5..4ea4a9b8c 100755
--- a/contrib/async-test/test-leaf.py
+++ b/contrib/async-test/test-leaf.py
@@ -7,16 +7,17 @@ from thrift.protocol import TBinaryProtocol
from thrift.server import THttpServer
from aggr import Aggr
+
class AggrHandler(Aggr.Iface):
- def __init__(self):
- self.values = []
+ def __init__(self):
+ self.values = []
- def addValue(self, value):
- self.values.append(value)
+ def addValue(self, value):
+ self.values.append(value)
- def getValues(self, ):
- time.sleep(1)
- return self.values
+ def getValues(self, ):
+ time.sleep(1)
+ return self.values
processor = Aggr.Processor(AggrHandler())
pfactory = TBinaryProtocol.TBinaryProtocolFactory()