MCPcopy
hub / github.com/etcd-io/etcd / Close

Method Close

tests/framework/e2e/etcd_process.go:244–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244func (ep *EtcdServerProcess) Close() error {
245 ep.cfg.lg.Info("closing server...", zap.String("name", ep.cfg.Name))
246 if err := ep.Stop(); err != nil {
247 return err
248 }
249
250 if !ep.cfg.KeepDataDir {
251 ep.cfg.lg.Info("removing directory", zap.String("data-dir", ep.cfg.DataDirPath))
252 return os.RemoveAll(ep.cfg.DataDirPath)
253 }
254 return nil
255}
256
257func (ep *EtcdServerProcess) waitReady(ctx context.Context) error {
258 defer close(ep.donec)

Callers

nothing calls this directly

Calls 3

StopMethod · 0.95
InfoMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected