Remove dockerclient heartbeat

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2014-06-08 16:36:26 -07:00 committed by Aaron Feng
parent 175b00f1b0
commit 2324381fa6
1 changed files with 1 additions and 5 deletions

View File

@ -14,7 +14,6 @@ import (
"net/http/httputil"
"net/url"
"strings"
"time"
)
type DockerClientConfig struct {
@ -63,10 +62,7 @@ type dockerClientBackend struct {
func (b *dockerClientBackend) attach(ctx *beam.Message) error {
if ctx.Args[0] == "" {
ctx.Ret.Send(&beam.Message{Verb: beam.Ack, Ret: b.Server})
for {
time.Sleep(1 * time.Second)
(&beam.Object{ctx.Ret}).Log("dockerclient: heartbeat")
}
<-make(chan struct{})
} else {
path := fmt.Sprintf("/containers/%s/json", ctx.Args[0])
resp, err := b.client.call("GET", path, "")