Skip to content
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

Instantiate FfiClient Lazily #125

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Instantiate FfiClient Lazily #125

merged 3 commits into from
Dec 15, 2023

Conversation

keepingitneil
Copy link
Contributor

No description provided.

@@ -160,7 +160,17 @@ def to_python_level(level: proto_ffi.LogLevel.ValueType) -> int:
raise Exception("unreachable")


_ffi_instance: Optional["FfiClient"] = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move that inside the class

@keepingitneil keepingitneil merged commit 585a6c1 into main Dec 15, 2023
16 checks passed
@keepingitneil keepingitneil deleted the neil/lazy-ffi branch December 15, 2023 00:57
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