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

refactor(accountsdb): Make the fields field optional, and validate that it's non-null before working with it #170

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

InKryption
Copy link
Contributor

This field is effectively already used as a parameter, this just makes it impossible to accidentally access it as a field before it's initialized, or after it's done being useful.

Also improve the code for creating and using the disk memory allocator.

@InKryption InKryption force-pushed the ink/accountsdb-refactor1 branch 6 times, most recently from 764f103 to 5c71adb Compare June 10, 2024 20:17
also add better toString methods to SocketAddr
@InKryption InKryption changed the title refactor(accountsdb): Make the fields field a parameter instead refactor(accountsdb): Make the fields field optional, and validate that it's non-null before working with it Jun 10, 2024
src/accountsdb/db.zig Outdated Show resolved Hide resolved
src/net/net.zig Outdated Show resolved Hide resolved
@0xNineteen 0xNineteen merged commit 488fb37 into main Jun 12, 2024
5 checks passed
@0xNineteen 0xNineteen deleted the ink/accountsdb-refactor1 branch June 12, 2024 12:10
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