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 context to syncer.Connect #28

Merged
merged 5 commits into from Mar 7, 2024
Merged

Add context to syncer.Connect #28

merged 5 commits into from Mar 7, 2024

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Mar 6, 2024

I had some TODOs in renterd for missing contexts in some of the new coreutils, but after closer inspection I can see why no contexts were added. Not sure if I totally agree in all cases though, for instance the chain manager never takes a context, even though the store is injected and might be a remote database or something so I think there's something to say for extending the Store interface and add a context to literally every method... That said, I think syncer.Connect is the only one that's really missing a context so I decided to suggest adding it.

@peterjan peterjan self-assigned this Mar 6, 2024
@peterjan peterjan marked this pull request as ready for review March 6, 2024 16:19
syncer/syncer.go Outdated Show resolved Hide resolved
@peterjan peterjan requested a review from n8maninger March 7, 2024 09:30
syncer/syncer.go Show resolved Hide resolved
syncer/syncer.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit 383f288 into master Mar 7, 2024
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/syncer-context branch March 7, 2024 13:57
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

4 participants