auth: add a timeout mechanism to simple token

This commit is contained in:
Vimal Kumar
2016-11-15 00:47:55 +05:30
parent 677606da7d
commit dfe853ebff
4 changed files with 129 additions and 6 deletions

View File

@ -679,6 +679,9 @@ func (s *EtcdServer) run() {
if s.kv != nil {
s.kv.Close()
}
if s.authStore != nil {
s.authStore.Close()
}
if s.be != nil {
s.be.Close()
}