Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3910894
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
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)
Attached To
Mode
D298: Refactor application entry point
Attached
Detach File
Event Timeline
Log In to Comment