diff --git a/pkg/runtime/init.go b/pkg/runtime/init.go index dc42880b..7601ad0b 100644 --- a/pkg/runtime/init.go +++ b/pkg/runtime/init.go @@ -41,10 +41,11 @@ func initRuntime(maxProc int) { } fmt.Println("Init kcl runtime ...") - time.Sleep(time.Duration(2000) * time.Millisecond) rpcRuntime = NewRuntime(int(maxProc), "kclvm_cli", "server") rpcRuntime.Start() + time.Sleep(time.Duration(2000) * time.Millisecond) + client := &BuiltinServiceClient{ Runtime: rpcRuntime, }