From 2af41341287dcba734c4299086618fe72b9ccafe Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 17 Feb 2021 11:21:51 +0200 Subject: [PATCH] address aarshian nitpicks --- core/network/conn.go | 1 + core/network/network.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/network/conn.go b/core/network/conn.go index 07afeacd..e1b6d561 100644 --- a/core/network/conn.go +++ b/core/network/conn.go @@ -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 diff --git a/core/network/network.go b/core/network/network.go index fc1b30ca..46ca3a44 100644 --- a/core/network/network.go +++ b/core/network/network.go @@ -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{}