mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Put back panic for go1.0.3 compatibility
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user