1
0
Fork 0
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:
Guillaume J. Charmes 2013-06-04 14:26:40 -07:00
parent c1ee9bf881
commit 7ef9833dbb
2 changed files with 4 additions and 0 deletions

View file

@ -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 {

View file

@ -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 {