Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
add runtime.Gosched() to rpc_sever waiting goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
af913337456 committed Oct 19, 2021
1 parent 029e725 commit f79bf40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func runServer(ctx *cli.Context) error {
}
}
}
runtime.Gosched()
time.Sleep(time.Second)
}
}()
Expand Down

0 comments on commit f79bf40

Please sign in to comment.