Skip to content

Commit 00a8691

Browse files
committed
remove mock-nvidia customization from file plugin
1 parent 881b2e5 commit 00a8691

2 files changed

Lines changed: 75 additions & 275 deletions

File tree

plugins/device/cmd/example/cmd/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
package main
55

66
import (
7-
"context"
8-
97
log "github.com/hashicorp/go-hclog"
108

119
"github.com/hashicorp/nomad/plugins"
@@ -19,6 +17,5 @@ func main() {
1917

2018
// factory returns a new instance of our example device plugin
2119
func factory(log log.Logger) interface{} {
22-
ctx := context.Background()
23-
return example.NewNvidiaDevice(ctx, log)
20+
return example.NewExampleDevice(log)
2421
}

0 commit comments

Comments
 (0)