Skip to content

Commit

Permalink
add client package
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatome committed Jul 12, 2022
1 parent d35242c commit fc8daf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
package client

import (
"fmt"
"log"
"os"

Expand Down Expand Up @@ -106,7 +105,6 @@ func (c *Client) OnReady(f func()) {
}
func (c *Client) OnBitmap(f func([]Bitmap)) {
f1 := func(data interface{}) {
fmt.Println(data)
bs := make([]Bitmap, 0, 50)
if c.tc == TC_VNC {
br := data.(*rfb.BitRect)
Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestClient(t *testing.T) {
fmt.Println("Login:", err)
}
c.OnBitmap(func(b []Bitmap) {
fmt.Println("ready:")
fmt.Println("ready:", b)
})
time.Sleep(100 * time.Second)
}

0 comments on commit fc8daf6

Please sign in to comment.