Skip to content

Commit e2923f5

Browse files
authored
Update main.py (#2472)
1 parent 2165c21 commit e2923f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

functions/tips/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def scope_demo(request):
8989

9090

9191
# [START functions_tips_lazy_globals]
92+
# [START run_tips_global_lazy]
9293
# Always initialized (at cold-start)
9394
non_lazy_global = file_wide_computation()
9495

@@ -114,6 +115,7 @@ def lazy_globals(request):
114115
lazy_global = function_specific_computation()
115116

116117
return 'Lazy: {}, non-lazy: {}.'.format(lazy_global, non_lazy_global)
118+
# [END run_tips_global_lazy]
117119
# [END functions_tips_lazy_globals]
118120

119121

0 commit comments

Comments
 (0)