Page MenuHomeDevCentral

D298.id701.diff
No OneTemporary

D298.id701.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
Sat, Nov 16, 23:21 (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248031
Default Alt Text
D298.id701.diff (849 B)

Event Timeline