fix lint warnings

This commit is contained in:
Darien Raymond
2018-05-31 11:55:11 +02:00
parent fe3ddb0ef5
commit adade2bffd
19 changed files with 159 additions and 80 deletions

View File

@@ -35,6 +35,7 @@ type BufferPolicy struct {
PerConnection int32
}
// SystemStatsPolicy contains stat policy settings on system level.
type SystemStatsPolicy struct {
// Whether or not to enable stat counter for uplink traffic in inbound handlers.
InboundUplink bool
@@ -42,6 +43,7 @@ type SystemStatsPolicy struct {
InboundDownlink bool
}
// SystemPolicy contains policy settings at system level.
type SystemPolicy struct {
Stats SystemStatsPolicy
Buffer BufferPolicy
@@ -178,6 +180,6 @@ func (m *syncPolicyManager) Set(manager PolicyManager) {
m.Lock()
defer m.Unlock()
common.Close(m.PolicyManager)
common.Close(m.PolicyManager) // nolint: errcheck
m.PolicyManager = manager
}