🔥 Removes fmt logs
This commit is contained in:
parent
b7b5e3169b
commit
ca96620d6e
@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
@ -30,14 +29,11 @@ func main() {
|
|||||||
for {
|
for {
|
||||||
conn, _, err = websocket.DefaultDialer.Dial(u.String(), nil)
|
conn, _, err = websocket.DefaultDialer.Dial(u.String(), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("conn err %v\n", err)
|
|
||||||
tries += 1
|
tries += 1
|
||||||
if tries >= 3 {
|
if tries >= 3 {
|
||||||
fmt.Printf("returning")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("breaking")
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -48,11 +44,9 @@ func main() {
|
|||||||
for {
|
for {
|
||||||
kind, _, err := conn.ReadMessage()
|
kind, _, err := conn.ReadMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("got read err %v\n", err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if kind == websocket.CloseMessage {
|
if kind == websocket.CloseMessage {
|
||||||
fmt.Printf("got close message")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -104,7 +98,6 @@ func main() {
|
|||||||
|
|
||||||
case ENTER_KEYCHAR:
|
case ENTER_KEYCHAR:
|
||||||
if ev.Kind == hook.KeyDown {
|
if ev.Kind == hook.KeyDown {
|
||||||
fmt.Printf("A")
|
|
||||||
buff = append(buff, []byte("\n")...)
|
buff = append(buff, []byte("\n")...)
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user