Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 2047341

Browse files
committed
Updated rexec example to use encoding interface
Signed-off-by: Derek McGowan <[email protected]> (github: dmcgowan)
1 parent 4aeac2a commit 2047341

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/rexec/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"os"
99

1010
"github.com/docker/libchan"
11+
"github.com/docker/libchan/encoding/msgpack"
1112
"github.com/docker/libchan/spdy"
1213
)
1314

@@ -46,7 +47,7 @@ func main() {
4647
if err != nil {
4748
log.Fatal(err)
4849
}
49-
transport := spdy.NewTransport(p)
50+
transport := spdy.NewTransport(p, &msgpack.Codec{})
5051
sender, err := transport.NewSendChannel()
5152
if err != nil {
5253
log.Fatal(err)

examples/rexec/rexec_server/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"syscall"
1111

1212
"github.com/docker/libchan"
13+
"github.com/docker/libchan/encoding/msgpack"
1314
"github.com/docker/libchan/spdy"
1415
)
1516

@@ -67,7 +68,7 @@ func main() {
6768
log.Print(err)
6869
break
6970
}
70-
t := spdy.NewTransport(p)
71+
t := spdy.NewTransport(p, &msgpack.Codec{})
7172

7273
go func() {
7374
for {

0 commit comments

Comments
 (0)