mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-14 02:20:06 +08:00
address aarshian nitpicks
This commit is contained in:
parent
980a554aa5
commit
faf23c3b17
@ -60,6 +60,7 @@ type ConnMultiaddrs interface {
|
|||||||
RemoteMultiaddr() ma.Multiaddr
|
RemoteMultiaddr() ma.Multiaddr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConnStat is an interface mixin for connection types that provide connection statistics.
|
||||||
type ConnStat interface {
|
type ConnStat interface {
|
||||||
// Stat stores metadata pertaining to this conn.
|
// Stat stores metadata pertaining to this conn.
|
||||||
Stat() Stat
|
Stat() Stat
|
||||||
|
@ -103,7 +103,7 @@ type Stat struct {
|
|||||||
Direction Direction
|
Direction Direction
|
||||||
// Opened is the timestamp when this connection was opened.
|
// Opened is the timestamp when this connection was opened.
|
||||||
Opened time.Time
|
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
|
Transient bool
|
||||||
// Extra stores additional metadata about this connection.
|
// Extra stores additional metadata about this connection.
|
||||||
Extra map[interface{}]interface{}
|
Extra map[interface{}]interface{}
|
||||||
|
Loading…
Reference in New Issue
Block a user