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

load balance social kyc based on kyc config #197

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

ice-cronus
Copy link
Contributor

No description provided.

@ice-cronus ice-cronus requested a review from a team as a code owner July 15, 2024 14:10
}
}

return startDate == nil || lbDuration == 0 || (time.Now().After(*startDate.Time) && int64(time.Now().Sub(*startDate.Time)%(lbDuration/r.cfg.MiningSessionDuration.Max)) >= userID%int64(lbDuration/r.cfg.MiningSessionDuration.Max))
Copy link
Contributor

Choose a reason for hiding this comment

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

… lbDuration == 0 || time.Now().After(startDate.Add(lbDuration)) ||
time.Now().Before(*startDate.Time)) || …

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, the chunking condition is jot correct. Its (now - start)% miningDuration.Max >= id% lbDur/miningDurationMax

@ice-ares ice-ares merged commit bcae316 into master Jul 15, 2024
25 checks passed
@ice-ares ice-ares deleted the feature/loadbalance_social_kyc branch July 15, 2024 15: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