Skip to content

Commit

Permalink
Replace busy blocking with block forever
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tbird committed Jan 11, 2018
1 parent 1165e15 commit e5ea7b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kubewatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@ func main() {
watchResource(clientset, resource, *flgNamespace)
}

// Loop forever:
for {
time.Sleep(time.Second)
}
// Block forever:
select {}
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit e5ea7b5

Please sign in to comment.