Skip to content

Commit

Permalink
add todo with issue numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Feb 24, 2021
1 parent 7377228 commit 4a6f00b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/auto-pause/auto-pause.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@ var mu sync.Mutex
var runtimePaused = false
var version = "0.0.1"

// TODO: make this configurable to support containerd/cri-o
// TODO: #10597 make this configurable to support containerd/cri-o
var runtime = "docker"

func main() {
// TODO: make this configurable
// TODO: #10595 make this configurable
const interval = time.Minute * 1
// channel for incoming messages
go func() {
for {
// On each iteration new timer is created
select {
// TODO: #10596 make it memory-leak proof
case <-time.After(interval):
runPause()
case <-unpauseRequests:
Expand Down

0 comments on commit 4a6f00b

Please sign in to comment.