mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Put back panic for go1.0.3 compatibility
This commit is contained in:
parent
c1ee9bf881
commit
7ef9833dbb
2 changed files with 4 additions and 0 deletions
|
@ -606,6 +606,7 @@ func (container *Container) waitLxc() error {
|
|||
}
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
panic("Unreachable")
|
||||
}
|
||||
|
||||
func (container *Container) monitor() {
|
||||
|
@ -794,6 +795,8 @@ func (container *Container) WaitTimeout(timeout time.Duration) error {
|
|||
case <-done:
|
||||
return nil
|
||||
}
|
||||
|
||||
panic("Unreachable")
|
||||
}
|
||||
|
||||
func (container *Container) EnsureMounted() error {
|
||||
|
|
|
@ -257,6 +257,7 @@ func proxy(listener net.Listener, proto, address string) error {
|
|||
utils.Debugf("Connected to backend, splicing")
|
||||
splice(src, dst)
|
||||
}
|
||||
panic("Unreachable")
|
||||
}
|
||||
|
||||
func halfSplice(dst, src net.Conn) error {
|
||||
|
|
Loading…
Reference in a new issue