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

begin offline mode implementation #1668

Closed
wants to merge 2 commits into from
Closed

Conversation

arschles
Copy link
Member

What is the problem I am trying to address?

In a few places like #1532, people have asked for a mode of Athens that never hits the internet (the current one will hit the internet in various circumstances).

How is the fix applied?

I began adding support for a mode in Athens that just reads from storage, not any upstream or anywhere else.

What GitHub issue(s) does this PR fix or close?

Ref #1532

Comment on lines +129 to +132
} else {
handlerOpts := &download.OfflineHandlerOpts{Logger: l, Storage: s}
download.RegisterOfflineHandlers(r, handlerOpts)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Drive-by look, but this could be:

if c.Mode == config.ModeOffline {
		handlerOpts := &download.OfflineHandlerOpts{Logger: l, Storage: s}
		download.RegisterOfflineHandlers(r, handlerOpts)
		return nil
}
// online handling

@chrisFrodo chrisFrodo mentioned this pull request Jan 7, 2021
@r-ashish
Copy link
Member

Solved by: #1717

@r-ashish r-ashish closed this Feb 17, 2023
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.

None yet

3 participants