Skip to content

Commit 8326f2f

Browse files
author
Keerthan Mala
committed
fix(perf): fix the high cpu utilization of the registry
1 parent d019479 commit 8326f2f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootfs/opt/registry/sbin/registry

main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,10 @@ func main() {
102102
cmd := exec.Command(registryBinary, registryConfig)
103103
cmd.Stdout = os.Stdout
104104
cmd.Stderr = os.Stderr
105-
if err := cmd.Start(); err != nil {
105+
if err := cmd.Run(); err != nil {
106106
log.Fatal("Error starting the registry", err)
107107
}
108108
log.Println("INFO: registry started.")
109-
for {
110-
}
111109
}
112110

113111
func getenv(name, dfault string) string {

0 commit comments

Comments
 (0)