File tree 1 file changed +2
-2
lines changed
functions/concepts/scopes/src/main/java/functions
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class Scopes implements HttpFunction {
30
30
// Global (instance-wide) scope
31
31
// This computation runs at instance cold-start.
32
32
// Warning: Class variables used in functions code must be thread-safe.
33
- private static final int InstanceVar = heavyComputation ();
33
+ private static final int INSTANCE_VAR = heavyComputation ();
34
34
35
35
@ Override
36
36
public void service (HttpRequest request , HttpResponse response )
@@ -40,7 +40,7 @@ public void service(HttpRequest request, HttpResponse response)
40
40
int functionVar = lightComputation ();
41
41
42
42
var writer = new PrintWriter (response .getWriter ());
43
- writer .printf ("Instance: %s; function: %s" , InstanceVar , functionVar );
43
+ writer .printf ("Instance: %s; function: %s" , INSTANCE_VAR , functionVar );
44
44
}
45
45
46
46
private static int lightComputation () {
You can’t perform that action at this time.
0 commit comments