mirror of
https://github.com/sprockets/sprockets.handlers.heartbeat.git
synced 2024-11-28 11:19:50 +00:00
HeartbeatHandler: Remove unnecessary call to write().
This commit is contained in:
parent
27ed98f81c
commit
e670ec27bd
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
Version History
|
Version History
|
||||||
---------------
|
---------------
|
||||||
|
- 0.1.1 [2014-11-06]:
|
||||||
|
- Make Tornado 3.x compatible.
|
||||||
- 0.1.0 [2014-10-14]
|
- 0.1.0 [2014-10-14]
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
|
@ -8,7 +8,7 @@ import logging
|
||||||
|
|
||||||
from tornado.web import RequestHandler
|
from tornado.web import RequestHandler
|
||||||
|
|
||||||
version_info = (0, 1, 0)
|
version_info = (0, 1, 1)
|
||||||
__version__ = '.'.join(str(v) for v in version_info)
|
__version__ = '.'.join(str(v) for v in version_info)
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -23,7 +23,7 @@ class HeartbeatHandler(RequestHandler):
|
||||||
"""Respond with the health of our service."""
|
"""Respond with the health of our service."""
|
||||||
if not all(callback() for callback in callbacks):
|
if not all(callback() for callback in callbacks):
|
||||||
self.set_status(500)
|
self.set_status(500)
|
||||||
self.write()
|
return
|
||||||
|
|
||||||
self.set_status(204)
|
self.set_status(204)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue