Skip to content

Commit aca09f6

Browse files
tpreclikphoracek
authored andcommitted
fix 10 seconds delay upon plugin start
Signed-off-by: Tobias Preclik <tobias.preclik@siemens.com>
1 parent a8d8e2e commit aca09f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/dpm/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (dpi *devicePlugin) serve() error {
113113
// Wait till grpc server is ready.
114114
for i := 0; i < 10; i++ {
115115
services := dpi.Server.GetServiceInfo()
116-
if len(services) > 1 {
116+
if len(services) >= 1 {
117117
break
118118
}
119119
time.Sleep(1 * time.Second)

0 commit comments

Comments
 (0)