Skip to content

Commit 50ef4da

Browse files
author
Pei PeiDong
committed
update server.go
Signed-off-by: Pei PeiDong <[email protected]>
1 parent c20046c commit 50ef4da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/plugin/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type nvidiaDevicePlugin struct {
5959

6060
socket string
6161
server *grpc.Server
62-
health chan *rm.Device
62+
health chan *rm.DeviceEvent
6363
stop chan interface{}
6464

6565
imexChannels imex.Channels
@@ -105,7 +105,7 @@ func getPluginSocketPath(resource spec.ResourceName) string {
105105

106106
func (plugin *nvidiaDevicePlugin) initialize() {
107107
plugin.server = grpc.NewServer([]grpc.ServerOption{}...)
108-
plugin.health = make(chan *rm.Device)
108+
plugin.health = make(chan *rm.DeviceEvent, 10)
109109
plugin.stop = make(chan interface{})
110110
}
111111

0 commit comments

Comments
 (0)