Skip to content

Conversation

@jpadie
Copy link
Contributor

@jpadie jpadie commented Nov 13, 2024

replace factoryReset and destroy with erase and delete

replace factoryReset and destroy with erase and delete
@semanticdiff-com
Copy link

Review changes with  SemanticDiff

Copy link
Collaborator

@Apollon77 Apollon77 left a comment

Choose a reason for hiding this comment

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

Thank you

- **`factoryReset()`**: This factory resets the device. If started it is stopped and restarted afterward.
- **`destroy()`**: This destroys the node, taking it offline and removing it from the environment workers-
- **`erase()`**: This factory resets the device. If started it is stopped and restarted afterward.
- **`delete()`**: This destroys the node, taking it offline and removing it from the environment workers-
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this not be "cancel"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is a third method called cancel(). it's already in the docs.

cancel leaves the structure intact according to the docs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahh ok I got confused.

delete is "Erase all persisted data and destroy the node." ... so it does erase() and then close()

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.

2 participants