mirror of
https://github.com/safing/portbase
synced 2025-09-14 09:09:50 +00:00
Fix tests and linter warnings
This commit is contained in:
parent
7d2cd6c15d
commit
f59ad0357a
162 changed files with 668 additions and 696 deletions
|
@ -8,15 +8,16 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/safing/portbase/log"
|
||||
"github.com/tevino/abool"
|
||||
|
||||
"github.com/safing/portbase/log"
|
||||
)
|
||||
|
||||
var (
|
||||
modules = make(map[string]*Module)
|
||||
mgmtLock sync.Mutex
|
||||
|
||||
// lock modules when starting
|
||||
// modulesLocked locks `modules` during starting.
|
||||
modulesLocked = abool.New()
|
||||
|
||||
moduleStartTimeout = 2 * time.Minute
|
||||
|
@ -27,7 +28,7 @@ var (
|
|||
)
|
||||
|
||||
// Module represents a module.
|
||||
type Module struct { //nolint:maligned // not worth the effort
|
||||
type Module struct {
|
||||
sync.RWMutex
|
||||
|
||||
Name string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue