From 92c28d458970e5ac0bbb72b138f520eb633d5eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E5=AE=87?= Date: Mon, 3 Jun 2019 23:07:46 +0800 Subject: [PATCH] Format. --- pkg/transport/managed_transport.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/transport/managed_transport.go b/pkg/transport/managed_transport.go index 5a3080b31d..f7ab42dcc4 100644 --- a/pkg/transport/managed_transport.go +++ b/pkg/transport/managed_transport.go @@ -84,6 +84,7 @@ func (tr *ManagedTransport) Write(p []byte) (n int, err error) { return } +// Edges returns the edges of underlying transport. func (tr *ManagedTransport) Edges() [2]cipher.PubKey { tr.mu.RLock() edges := tr.Transport.Edges() @@ -91,6 +92,7 @@ func (tr *ManagedTransport) Edges() [2]cipher.PubKey { return edges } +// SetDeadline sets the deadline of the underlying transport. func (tr *ManagedTransport) SetDeadline(t time.Time) error { tr.mu.RLock() err := tr.Transport.SetDeadline(t)