Skip to content

Commit 1320dec

Browse files
committed
Deleted extra spacing
1 parent 7224e2b commit 1320dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connections/functions/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Functions can help you bring external data into Segment ([Source functions](/doc
1616
Functions are powered by AWS Lambda functions on the backend. This means you will need to declare any settings variables you create in the function handler rather than globally in your function.
1717

1818
- For Source functions, the handler is onRequest().
19-
- For Destination functions and Insert functions, the handler is event-specfic. For example onTrack(), onIdentify(), etc.
19+
- For Destination functions and Insert functions, the handler is event-specfic. For example onTrack(), onIdentify(), etc.
2020

21-
If you declare functions globally in your function code, you risk leaking those settings values across function instances if you have more than one per function codebase. Make sure that you scope settings to the handler functions and pass those settings values as arguments to any helper functions that may need them to ensure context remains scoped to each function instance.
21+
If you declare functions globally in your function code, you risk leaking those settings values across function instances if you have more than one per function codebase. Make sure that you scope settings to the handler functions and pass those settings values as arguments to any helper functions that may need them to ensure context remains scoped to each function instance.
2222

2323
Learn more about this at in the [AWS Documentation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html#:~:text=Avoid%20global%20variables,static%20initialization%20performance){:target="_blank"}.
2424

0 commit comments

Comments
 (0)