examples/ping/client: Fix client example

This commit is contained in:
Sasha Koshka 2025-11-08 19:50:22 -05:00
parent bb14ec20a7
commit 968e145cda

View File

@ -7,7 +7,7 @@ import "log"
import "net"
import "time"
import "errors"
import "context"
// import "context"
import "git.tebibyte.media/sashakoshka/hopp"
import "git.tebibyte.media/sashakoshka/hopp/examples/ping"
@ -59,7 +59,7 @@ func dial(address string) (hopp.Conn, error) {
// return conn, nil
underlying, err := net.Dial("tcp", address)
if err != nil { return nil, err }
conn := hopp.AdaptA(underlying, hopp.PartyClient)
conn := hopp.AdaptA(underlying, hopp.ServerSide)
return conn, nil
}