Skip to content

cmd/syncthing: Provide early startup for config service (ref #7188) - #7285

Merged
imsodin merged 1 commit into
syncthing:mainfrom
calmh:earlysvc
Jan 16, 2021
Merged

imsodin merged 1 commit into
syncthing:mainfrom
calmh:earlysvc

Conversation

@calmh

@calmh calmh commented Jan 16, 2021

Copy link
Copy Markdown
Member

Don't hang on startup.

(We should push a new nightly after merging...)

@AudriusButkevicius

Copy link
Copy Markdown
Member

Shouldn't the supervisor live on the app, in the ambition that we could tear down nicely?

I guess the event logger lived outside already, hence why that is not needed?

This does change what people wrapping this in C would need to do tho?

@imsodin imsodin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the catch!

It makes sense that the lifetime of objects passed to the app/syncthing.New is controlled outside of it. After all you could provide your own implementation of both interfaces. We have convenience methods in lib/syncthing/util.go, so having something there to handle the lifetime of the "default wrapper and event-logger" including starting would make sense. Nothing for this hotfix/PR though.

This does change what people wrapping this in C would need to do tho?

They now need to use the same method they already use to run events.Logger on config.Wrapper as well.

@imsodin
imsodin merged commit ffcb575 into syncthing:main Jan 16, 2021
@imsodin

imsodin commented Jan 16, 2021

Copy link
Copy Markdown
Member

Nightly is deployed and an announcement post about the manual intervention required made: https://forum.syncthing.net/t/nightly-build-requires-manual-intervention-2021-01-16/16195 (not sure how many nightly users we really have - would be interesting for usage reporting).

@calmh calmh added this to the v1.14.0 milestone Feb 4, 2021
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jan 17, 2022
@syncthing syncthing locked and limited conversation to collaborators Jan 17, 2022
@calmh
calmh deleted the earlysvc branch May 26, 2025 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants