tr: remove unused DriverHandle interface

was causing typed nil interface panics and served no purpose
This commit is contained in:
Michael Schurter
2018-10-15 20:06:35 -07:00
parent 9c4a1d4c28
commit e026d6e80a
3 changed files with 2 additions and 40 deletions

View File

@@ -1,7 +1,6 @@
package taskrunner
import (
"github.com/hashicorp/nomad/client/allocrunner/taskrunner/interfaces"
"github.com/hashicorp/nomad/nomad/structs"
)
@@ -51,7 +50,7 @@ func (tr *TaskRunner) setVaultToken(token string) {
// getDriverHandle returns a driver handle and its result proxy. Use the
// result proxy instead of the handle's WaitCh.
func (tr *TaskRunner) getDriverHandle() interfaces.DriverHandle {
func (tr *TaskRunner) getDriverHandle() *DriverHandle {
tr.handleLock.Lock()
defer tr.handleLock.Unlock()
return tr.handle