routing: remove unnecessary lock in mission control init
The init code is part of the instantiation, so there is no need for locking yet.
This commit is contained in:
parent
89751f869f
commit
56238ebc60
@ -238,9 +238,6 @@ func NewMissionControl(db kvdb.Backend, self route.Vertex,
|
||||
func (m *MissionControl) init() error {
|
||||
log.Debugf("Mission control state reconstruction started")
|
||||
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
||||
start := time.Now()
|
||||
|
||||
results, err := m.store.fetchAll()
|
||||
|
Loading…
Reference in New Issue
Block a user