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

Init actor implementation #282

Merged
merged 4 commits into from
Mar 16, 2020
Merged

Init actor implementation #282

merged 4 commits into from
Mar 16, 2020

Conversation

austinabell
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

Reference issue to close (if applicable)

Other information and links

@austinabell austinabell changed the title Implement init actor Init actor implementation Mar 16, 2020
None => return Err(HamtError::Custom("address not found")),
};

Ok(Address::new_id(actor_id.0).unwrap())
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason for the unwrap() usage here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because that can't realistically fail and I didn't want to change the error type, but I'll change


let actor_id: ActorID = match map.get(&addr.hash_key())? {
Some(id) => id,
None => return Err(HamtError::Custom("address not found")),
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit: are we capitalizing error messages? Whichever it is I think we should keep consistent.

@austinabell austinabell merged commit 7c8fb8c into master Mar 16, 2020
@austinabell austinabell deleted the austin/actor/init branch March 16, 2020 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement updated init Actor
3 participants