mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(main): add todo item and update comments
This commit is contained in:
parent
a9e77c022c
commit
3eb74fc32c
@ -59,7 +59,7 @@ func New(c *config.Config) *Etcd {
|
||||
}
|
||||
}
|
||||
|
||||
// Run etcd.
|
||||
// Run the etcd instance.
|
||||
func (e *Etcd) Run() {
|
||||
// Enable options.
|
||||
if e.Config.VeryVeryVerbose {
|
||||
@ -221,12 +221,17 @@ func (e *Etcd) Run() {
|
||||
log.Infof("etcd instance is stopped [name %s]", e.Config.Name)
|
||||
}
|
||||
|
||||
// Stop the etcd instance.
|
||||
//
|
||||
// TODO Shutdown gracefully.
|
||||
func (e *Etcd) Stop() {
|
||||
e.PeerServer.Stop()
|
||||
e.peerListener.Close()
|
||||
e.listener.Close()
|
||||
}
|
||||
|
||||
// ReadyNotify returns a channel that is going to be closed
|
||||
// when the etcd instance is ready to accept connections.
|
||||
func (e *Etcd) ReadyNotify() chan bool {
|
||||
return e.readyC
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user