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

Vectorclock abstraction #370

Merged
merged 23 commits into from
Jun 13, 2019
Merged

Vectorclock abstraction #370

merged 23 commits into from
Jun 13, 2019

Conversation

bieniusa
Copy link
Contributor

Major refactoring of meta_data_sender and related modules to use maps instead of dicts.
Further corrections of the unit tests and simplifications and cleaning up of code.

Hint: Vectorclock dependencies must be adapted still to new vectorclock version with maps.

Copy link
Member

@peterzeller peterzeller left a comment

Choose a reason for hiding this comment

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

Nice improvements in code readability 👍

src/clocksi_materializer.erl Outdated Show resolved Hide resolved
end, ok, SS).
PrintFun = fun(DcId, Time) ->
logger:debug("~w staleness: ~w ms ~n", [DcId, (Now-Time)/1000]) end,
_ = vectorclock:map(PrintFun, SS),
Copy link
Member

Choose a reason for hiding this comment

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

Should we add a vectorclock:foreach function?


-module(stable_time_functions).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a behavior since these functions are used as callbacks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's add it once we have more than one instantiation.

src/stable_time_functions.erl Outdated Show resolved Hide resolved
src/meta_data_sender.erl Outdated Show resolved Hide resolved
src/meta_data_sender.erl Show resolved Hide resolved
@bieniusa bieniusa merged commit 4cf08fc into master Jun 13, 2019
@bieniusa bieniusa deleted the vectorclock_abstraction branch June 13, 2019 07:43
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