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

fix(pserver): use with-blocks when possible #384

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Conversation

michaelfig
Copy link
Member

More use of with blocks to keep file descriptor usage low.

Part of the review of #382.

@michaelfig michaelfig requested a review from warner January 7, 2020 00:22
Copy link
Member

@warner warner left a comment

Choose a reason for hiding this comment

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

looks good.. didn't realize there were so many :)

@michaelfig michaelfig merged commit 43ac9ac into master Jan 7, 2020
@michaelfig michaelfig deleted the 382-with-blocks branch January 7, 2020 19:03
@dckc
Copy link
Member

dckc commented Jan 10, 2020

While you're in the neighborhood of cleanin up open() stuff, any chance you want to tackle the ambient authority?

I started cleaning up ag_setup_solo/main.py a while ago so I could understand what it was doing...

dckc/cosmic-swingset@7a85ca8

@michaelfig
Copy link
Member Author

I'd rather wait on that until we move the provisioning server to a cloud platform (which probably means it will be rewritten/redesigned in Node.js). That's when I intend to remove the magic wormhole dependency, too.

"Remove ambient authority" is a little more far-reaching than "use with-blocks", which was purely mechanical. Although I'm sure the exercise would be enlightening, I can't just toss that one off in two minutes.

dckc pushed a commit to dckc/agoric-sdk that referenced this pull request Jan 18, 2020
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.

3 participants