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

Add nanoTime to AeronArchive.Context #1188

Merged
merged 2 commits into from
Jun 8, 2021
Merged

Conversation

najones
Copy link
Contributor

@najones najones commented Jun 8, 2021

I have found that when using a dedicated media driver for Aeron Archive, I have needed to supply a nanoClock in order to debug, as by default the SystemNanoClock.INSTANCE is used and I could not see a way to override that.

najones added 2 commits June 8, 2021 13:15
Support setting a NanoClock instance in Archive.Context so that we can control time better
@mjpt777
Copy link
Contributor

mjpt777 commented Jun 8, 2021

This is not used in the code so looks odd adding it.

@najones
Copy link
Contributor Author

najones commented Jun 8, 2021

This is not used in the code so looks odd adding it.

It's used in line 931 if an aeron instance was not supplied.

@mjpt777
Copy link
Contributor

mjpt777 commented Jun 8, 2021

It's used in line 931 if an aeron instance was not supplied.

OK, I missed that. Thanks.

@mjpt777 mjpt777 merged commit e2e133f into aeron-io:master Jun 8, 2021
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