mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
chore(*): go fmt
I noticed that travis was failing, go fmt to make it happy. Docker-DCO-1.1-Signed-off-by: Brandon Philips <brandon.philips@coreos.com> (github: philips)
This commit is contained in:
parent
1f44921c51
commit
1603039a71
2 changed files with 4 additions and 4 deletions
4
api.go
4
api.go
|
@ -1094,9 +1094,9 @@ func ServeFd(addr string, handle http.Handler) error {
|
|||
|
||||
// Since ListenFD will return one or more sockets we have
|
||||
// to create a go func to spawn off multiple serves
|
||||
for i, _ := range(ls) {
|
||||
for i, _ := range ls {
|
||||
listener := ls[i]
|
||||
go func () {
|
||||
go func() {
|
||||
httpSrv := http.Server{Handler: handle}
|
||||
chErrors <- httpSrv.Serve(listener)
|
||||
}()
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"github.com/dotcloud/docker/engine"
|
||||
"github.com/dotcloud/docker/pkg/cgroups"
|
||||
"github.com/dotcloud/docker/pkg/graphdb"
|
||||
"github.com/dotcloud/docker/registry"
|
||||
"github.com/dotcloud/docker/pkg/systemd"
|
||||
"github.com/dotcloud/docker/registry"
|
||||
"github.com/dotcloud/docker/utils"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
@ -123,7 +123,7 @@ func (srv *Server) ListenAndServe(job *engine.Job) engine.Status {
|
|||
|
||||
for _, protoAddr := range protoAddrs {
|
||||
protoAddrParts := strings.SplitN(protoAddr, "://", 2)
|
||||
go func () {
|
||||
go func() {
|
||||
log.Printf("Listening for HTTP on %s (%s)\n", protoAddrParts[0], protoAddrParts[1])
|
||||
chErrors <- ListenAndServe(protoAddrParts[0], protoAddrParts[1], srv, job.GetenvBool("Logging"))
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue