Skip to content

Commit

Permalink
sdfssadad
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 24, 2024
1 parent a899736 commit 049ea55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/runtime/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func initRuntime(maxProc int) {
}

fmt.Println("Init kcl runtime ...")
time.Sleep(time.Duration(300) * time.Millisecond)
time.Sleep(time.Duration(2000) * time.Millisecond)
rpcRuntime = NewRuntime(int(maxProc), "kclvm_cli", "server")
rpcRuntime.Start()

Expand Down
1 change: 0 additions & 1 deletion pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func (p *Runtime) setStop() { atomic.StoreInt32(&p.stoped, 1) }
func (p *Runtime) Close() error {
p.setStop()
defer p.wg.Wait()
fmt.Println("Close rpc server")
var lastErr error
for _, proc := range p.procs {
if err := proc.Kill(); err != nil {
Expand Down

0 comments on commit 049ea55

Please sign in to comment.