examples/ping/client: Fix client example
This commit is contained in:
parent
bb14ec20a7
commit
968e145cda
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user