mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
tr: remove unused DriverHandle interface
was causing typed nil interface panics and served no purpose
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user