auth: Customize simpleTokenTTL settings.

see https://github.com/etcd-io/etcd/issues/11978 for more detail.
This commit is contained in:
cfc4n
2020-06-11 17:15:42 +08:00
committed by CFC4N
parent 31e49a4df3
commit 4488595e05
10 changed files with 48 additions and 25 deletions

View File

@@ -553,6 +553,7 @@ func NewServer(cfg ServerConfig) (srv *EtcdServer, err error) {
func(index uint64) <-chan struct{} {
return srv.applyWait.Wait(index)
},
time.Duration(cfg.TokenTTL)*time.Second,
)
if err != nil {
if cfg.Logger != nil {