Permalink
Browse files

Fix http_thrift demo service

  • Loading branch information...
1 parent 525bdcd commit eac587c6adc9df1ec4e69a5cebf4ad6e226ca522 @fmoo committed Nov 14, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 demo/http_thrift.py
View
@@ -1,8 +1,8 @@
from sparts.vservice import VService
from sparts.tasks.thrift import NBServerTask
+from sparts.tasks.fb303 import FB303ProcessorTask
from sparts.tasks.tornado import TornadoHTTPTask, TornadoIOLoopTask
from sparts.tasks.tornado_thrift import TornadoThriftHandler
-from sparts.vfb303 import FacebookBase
class MyHTTPTask(TornadoHTTPTask):
@@ -11,12 +11,8 @@ def getApplicationConfig(self):
('/thrift', TornadoThriftHandler, dict(processor=self.service)),
]
-class MyHTTPThriftService(VService, FacebookBase):
- TASKS=[NBServerTask, MyHTTPTask, TornadoIOLoopTask]
-
- def __init__(self, *args, **kwargs):
- VService.__init__(self, *args, **kwargs)
- FacebookBase.__init__(self)
+class MyHTTPThriftService(VService):
+ TASKS=[NBServerTask, MyHTTPTask, TornadoIOLoopTask, FB303ProcessorTask]
if __name__ == '__main__':

0 comments on commit eac587c

Please sign in to comment.