Skip to content

fix(*): lazily initialize structures to avoid c-boundary errors on require #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

bungle
Copy link
Member

@bungle bungle commented Sep 19, 2023

Summary

Moves the code that was previously running on module level to initialize function that are lazily called when needed. This is to avoid the yield accross C-boundary errors during require.

@bungle bungle requested a review from hanshuebner September 19, 2023 14:30
…quire

### Summary

Moves the code that was previously running on `module` level to `initialize` function
that are lazily called when needed. This is to avoid the `yield accross C-boundary`
errors during `require`.
hanshuebner
hanshuebner previously approved these changes Sep 19, 2023
@github-actions
Copy link

Luacheck Report

14 tests     1 ✔️  0s ⏱️
  1 suites    0 💤
  1 files    13

For more details on these failures, see this check.

Results for commit 24de8e1.

@bungle bungle merged commit dd4e38c into main Sep 19, 2023
@bungle bungle deleted the fix/c-boundary branch September 19, 2023 14:41
bungle added a commit to Kong/kong that referenced this pull request Sep 19, 2023
### Summary

#### 1.3.5 (19-Sep-2023)

- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

#### 1.3.4 (13-Sep-2023)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

#### 1.3.3 (13-Sep-2023)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <[email protected]>
bungle added a commit to Kong/kong that referenced this pull request Sep 19, 2023
### Summary

#### 1.3.5 (19-Sep-2023)

- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

#### 1.3.4 (13-Sep-2023)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

#### 1.3.3 (13-Sep-2023)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <[email protected]>
windmgc pushed a commit to Kong/kong that referenced this pull request Jan 24, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <[email protected]>
windmgc pushed a commit to Kong/kong that referenced this pull request Mar 7, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <[email protected]>
windmgc pushed a commit to Kong/kong that referenced this pull request Mar 8, 2024
- fix: lazily initialize structures to avoid c-boundary errors on require
  [87](Kong/lua-resty-aws#87)

- fix: remove more module-level uses of config.global
  [83](Kong/lua-resty-aws#83)

- fix: don't invoke region detection code on the module toplevel and advise against trying to.
  [81](Kong/lua-resty-aws#81)

Signed-off-by: Aapo Talvensaari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants