Don't panic when docker client cannot be obtained.
Make close session faster by deleting instances in parallel.
This commit is contained in:
@@ -114,14 +114,6 @@ func (p *pwd) getProvisioner(t string) (provisioner.ProvisionerApi, error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (p *pwd) docker(sessionId string) docker.DockerApi {
|
||||
d, err := p.dockerFactory.GetForSession(sessionId)
|
||||
if err != nil {
|
||||
panic("Should not have got here. Session always need to be validated before calling this.")
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
func (p *pwd) setGauges() {
|
||||
s, _ := p.storage.SessionCount()
|
||||
ses := float64(s)
|
||||
|
||||
Reference in New Issue
Block a user