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

SubtensorInterface built-in substrate.close #7

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented Aug 14, 2024

Added substrate.close() to SubtensorInterface.__aexit__ to allow for context-based connection closing. This cuts down on boilerplate. Diff looks large, but it's really about 50 lines changed, and a bunch of added/removed indentation.

@thewhaleking thewhaleking requested a review from a team August 14, 2024 18:03
@thewhaleking thewhaleking merged commit b2fb868 into main Aug 14, 2024
2 checks passed
@thewhaleking thewhaleking deleted the fix/thewhaleking/aexit-built-in branch August 14, 2024 18:25
@thewhaleking thewhaleking mentioned this pull request Aug 14, 2024
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