Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3746443
D298.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
849 B
Referenced Files
None
Subscribers
None
D298.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 21:21 (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248031
Default Alt Text
D298.diff (849 B)
Attached To
Mode
D298: Refactor application entry point
Attached
Detach File
Event Timeline
Log In to Comment