Skip to content

Commit

Permalink
fix: review and rename
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Antoshin <[email protected]>
  • Loading branch information
danilrwx committed Dec 5, 2024
1 parent 2241e9d commit 6d18cc1
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/pkg/virt-handler/rest/console.go b/pkg/virt-handler/rest/console.go
index 29fd317aa5..09922c0f18 100644
index 29fd317aa5..a42d85dc50 100644
--- a/pkg/virt-handler/rest/console.go
+++ b/pkg/virt-handler/rest/console.go
@@ -32,6 +32,7 @@ import (
Expand All @@ -10,15 +10,6 @@ index 29fd317aa5..09922c0f18 100644
"github.com/mdlayher/vsock"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/tools/cache"
@@ -291,7 +292,7 @@ func unixSocketDialer(vmi *v1.VirtualMachineInstance, unixSocketPath string) fun
}

func (t *ConsoleHandler) stream(vmi *v1.VirtualMachineInstance, request *restful.Request, response *restful.Response, dial func() (net.Conn, error), stopCh chan struct{}) {
- var upgrader = kvcorev1.NewUpgrader()
+ upgrader := kvcorev1.NewUpgrader()
clientSocket, err := upgrader.Upgrade(response.ResponseWriter, request.Request, nil)
if err != nil {
log.Log.Object(vmi).Reason(err).Error("Failed to upgrade client websocket connection")
@@ -324,7 +325,7 @@ func (t *ConsoleHandler) stream(vmi *v1.VirtualMachineInstance, request *restful

select {
Expand Down

0 comments on commit 6d18cc1

Please sign in to comment.