Page MenuHomeDevCentral

D298.diff
No OneTemporary

D298.diff

diff --git a/notifications b/notifications
--- a/notifications
+++ b/notifications
@@ -174,16 +174,22 @@
# -------------------------------------------------------------
-# Procedural code
+# Application entry point
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-app = initialize_application()
-parse_arguments(app['options'])
-subscribe_to_notifications(
- app['options'],
- app['channel'],
- app['exchange'],
- app['queue']
-)
-consume_notifications(app['channel'], app['queue'])
+def run_application():
+ app = initialize_application()
+ parse_arguments(app['options'])
+
+ subscribe_to_notifications(
+ app['options'],
+ app['channel'],
+ app['exchange'],
+ app['queue']
+ )
+
+ consume_notifications(app['channel'], app['queue'])
+
+
+run_application()

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 00:47 (11 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307137
Default Alt Text
D298.diff (849 B)

Event Timeline