Skip to content

close before stop or stop before close in embedded etcd? #15724

Closed Answered by tjungblu
bluebrown asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at the code, the Close method will also stop:
https://github.com/etcd-io/etcd/blob/server/v3.5.8/server/embed/etcd.go#L423-L426

So it's enough to just Close.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bluebrown
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants