address aarshian nitpicks

This commit is contained in:
vyzo 2021-02-17 11:21:51 +02:00
parent c8b8064cd2
commit 2af4134128
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ type ConnMultiaddrs interface {
RemoteMultiaddr() ma.Multiaddr
}
// ConnStat is an interface mixin for connection types that provide connection statistics.
type ConnStat interface {
// Stat stores metadata pertaining to this conn.
Stat() Stat

View File

@ -103,7 +103,7 @@ type Stat struct {
Direction Direction
// Opened is the timestamp when this connection was opened.
Opened time.Time
// Transient indicates that this connection is transient and may be closed soon
// Transient indicates that this connection is transient and may be closed soon.
Transient bool
// Extra stores additional metadata about this connection.
Extra map[interface{}]interface{}