Commit 9a692ffd authored by Kirill Smelkov's avatar Kirill Smelkov

X xnet: Polish a bit

parent 7e2af9df
......@@ -83,7 +83,7 @@ type netTLS struct {
}
func (n *netTLS) Network() string {
return n.inner.Network() + "+tls" // XXX is this a good idea?
return n.inner.Network() + "+tls"
}
func (n *netTLS) Dial(ctx context.Context, addr string) (net.Conn, error) {
......
......@@ -19,7 +19,6 @@
package xnet
// network tracing
// XXX move to xnet/trace ?
import (
"context"
......@@ -39,7 +38,9 @@ import (
// - because in case of pipenet tracing writes only is enough to get whole network exchange picture
//
// 2. Dial only (no Accept)
// XXX text
// - for similar reasons.
//
// WARNING NetTrace functionality is currently very draft.
func NetTrace(inner Networker, tracer Tracer) Networker {
return &netTrace{inner, tracer}
}
......@@ -72,7 +73,7 @@ type TraceTx struct {
}
// netTrace wraps underlying Networker such that whenever a connection is created
// it is wrapped with traceConn
// it is wrapped with traceConn.
type netTrace struct {
inner Networker
tracer Tracer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment