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: rename usage counter #9

Open
szszszsz opened this issue Jan 23, 2023 · 0 comments
Open

Refactor: rename usage counter #9

szszszsz opened this issue Jan 23, 2023 · 0 comments
Labels
refactor Code refactoring, no functional changes

Comments

@szszszsz
Copy link
Member

Current usage counter for the credentials is named timestamp, which is misleading. Should be use_counter or anything resembling.

pub fn timestamp<T: TrussedClient>(&mut self, trussed: &mut T) -> Result<u32> {
let now = self.timestamp;
self.timestamp += 1;
self.save(trussed)?;
Ok(now)

@szszszsz szszszsz added the refactor Code refactoring, no functional changes label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code refactoring, no functional changes
Projects
None yet
Development

No branches or pull requests

1 participant