mirror of
https://github.com/containers/podman.git
synced 2025-06-06 15:00:40 +08:00
fix lint - pkg/varlinkapi/virtwriter
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -27,13 +27,13 @@ const (
|
|||||||
TerminalResize SocketDest = iota
|
TerminalResize SocketDest = iota
|
||||||
// Quit and detach
|
// Quit and detach
|
||||||
Quit SocketDest = iota
|
Quit SocketDest = iota
|
||||||
// Quit from the client
|
// HangUpFromClient hangs up from the client
|
||||||
HangUpFromClient SocketDest = iota
|
HangUpFromClient SocketDest = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
// ClientHangup signifies that the client wants to drop its
|
// ErrClientHangup signifies that the client wants to drop its connection from
|
||||||
// connection from the server
|
// the server.
|
||||||
var ClientHangup = errors.New("client hangup")
|
var ErrClientHangup = errors.New("client hangup")
|
||||||
|
|
||||||
// IntToSocketDest returns a socketdest based on integer input
|
// IntToSocketDest returns a socketdest based on integer input
|
||||||
func IntToSocketDest(i int) SocketDest {
|
func IntToSocketDest(i int) SocketDest {
|
||||||
@ -177,7 +177,7 @@ func Reader(r *bufio.Reader, output, errput, input io.Writer, resize chan remote
|
|||||||
//
|
//
|
||||||
// reproducer: echo hello | (podman-remote run -i alpine cat)
|
// reproducer: echo hello | (podman-remote run -i alpine cat)
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
return ClientHangup
|
return ErrClientHangup
|
||||||
default:
|
default:
|
||||||
// Something really went wrong
|
// Something really went wrong
|
||||||
return errors.New("unknown multiplex destination")
|
return errors.New("unknown multiplex destination")
|
||||||
|
Reference in New Issue
Block a user