mirror of https://github.com/docker/docs.git
Remove dockerclient heartbeat
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
175b00f1b0
commit
2324381fa6
|
@ -14,7 +14,6 @@ import (
|
||||||
"net/http/httputil"
|
"net/http/httputil"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type DockerClientConfig struct {
|
type DockerClientConfig struct {
|
||||||
|
@ -63,10 +62,7 @@ type dockerClientBackend struct {
|
||||||
func (b *dockerClientBackend) attach(ctx *beam.Message) error {
|
func (b *dockerClientBackend) attach(ctx *beam.Message) error {
|
||||||
if ctx.Args[0] == "" {
|
if ctx.Args[0] == "" {
|
||||||
ctx.Ret.Send(&beam.Message{Verb: beam.Ack, Ret: b.Server})
|
ctx.Ret.Send(&beam.Message{Verb: beam.Ack, Ret: b.Server})
|
||||||
for {
|
<-make(chan struct{})
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
(&beam.Object{ctx.Ret}).Log("dockerclient: heartbeat")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
path := fmt.Sprintf("/containers/%s/json", ctx.Args[0])
|
path := fmt.Sprintf("/containers/%s/json", ctx.Args[0])
|
||||||
resp, err := b.client.call("GET", path, "")
|
resp, err := b.client.call("GET", path, "")
|
||||||
|
|
Loading…
Reference in New Issue