issue #589: remove outdated/incomplete examples

pull/595/head
David Wilson 6 years ago
parent 06690901e4
commit 2d083d19df

@ -59,8 +59,9 @@ bug reports, testing, features and fixes in this release contributed by
`Anton Markelov <https://github.com/strangeman>`_,
`Nigel Metheringham <https://github.com/nigelm>`_,
`Orion Poplawski <https://github.com/opoplawski>`_,
`Ulrich Schreiner <https://github.com/ulrichSchreiner>`_, and
`Yuki Nishida <https://github.com/yuki-nishida-exa>`_.
`Ulrich Schreiner <https://github.com/ulrichSchreiner>`_,
`Yuki Nishida <https://github.com/yuki-nishida-exa>`_, and
`@ghp-rr <https://github.com/ghp-rr>`_.
v0.2.7 (2019-05-19)

@ -1,15 +0,0 @@
import mitogen.master
import mitogen.unix
import mitogen.service
import mitogen.utils
PING = 500
mitogen.utils.log_to_file()
router, parent = mitogen.unix.connect('/tmp/mitosock')
with router:
print(mitogen.service.call(parent, CONNECT_BY_ID, {}))

@ -1,20 +0,0 @@
# The service framework will fundamentally change (i.e. become much nicer, and
# hopefully lose those hard-coded magic numbers somehow), but meanwhile this is
# a taster of how it looks today.
import mitogen
import mitogen.service
import mitogen.unix
class PingService(mitogen.service.Service):
def dispatch(self, dct, msg):
return 'Hello, world'
@mitogen.main()
def main(router):
listener = mitogen.unix.Listener(router, path='/tmp/mitosock')
service = PingService(router)
service.run()
Loading…
Cancel
Save