Skip to content

Commit 20a3a95

Browse files
authored
fix
1 parent a9041d4 commit 20a3a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/plugin/ws_data_proxy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ func (wsdp *wsDataProxy) wsConnect() (*websocket.Conn, error) {
140140
log.DefaultLogger.Info("Ws Connect", "connected to Connectionstring", val)
141141
// send connection string
142142
stringJSON := `{"id":1}`
143-
connectionErr := c.WriteMessage(websocket.TextMessage, []byte(stringJSON))
144-
if connectionErr != nil {
145-
return nil, connectionErr
143+
err1 := c.WriteMessage(websocket.TextMessage, []byte(stringJSON))
144+
if err1 != nil {
145+
return nil, err1
146146
}
147147
time.Sleep(2* time.Second)
148148
// send connection string

0 commit comments

Comments
 (0)