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(epochs): refactor to increase readability and some tests #976

Merged
merged 22 commits into from
Sep 27, 2022

Conversation

AgentSmithMatrix
Copy link
Contributor

Description

Increse the code higiene.

Purpose

Why is this PR important?

@AgentSmithMatrix AgentSmithMatrix requested a review from a team as a code owner September 24, 2022 13:13
return errors.New("epoch duration should NOT be 0")
}

if e.CurrentEpoch < 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we use int instead of unsigned int considering they cannot be negative?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can, I did not change the types though just refactor.

@AgentSmithMatrix AgentSmithMatrix enabled auto-merge (squash) September 27, 2022 20:30
@AgentSmithMatrix AgentSmithMatrix merged commit 0778ccd into master Sep 27, 2022
@AgentSmithMatrix AgentSmithMatrix deleted the feat/epochs-refactor branch September 27, 2022 21:54
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