diff --git a/embed/etcd.go b/embed/etcd.go index 8aeda04a1..b45b2f2c0 100644 --- a/embed/etcd.go +++ b/embed/etcd.go @@ -135,6 +135,11 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) { return } +// Config returns the current configuration. +func (e *Etcd) Config() Config { + return e.cfg +} + func (e *Etcd) Close() { for _, sctx := range e.sctxs { sctx.cancel()