Skip to content

Commit

Permalink
Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
林志宇 committed Jun 3, 2019
1 parent 9ddb3f2 commit 92c28d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/transport/managed_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ 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()
tr.mu.RUnlock()
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)
Expand Down

0 comments on commit 92c28d4

Please sign in to comment.