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:
Joost Jager 2021-03-17 12:06:12 +01:00
parent 89751f869f
commit 56238ebc60

@ -238,9 +238,6 @@ func NewMissionControl(db kvdb.Backend, self route.Vertex,
func (m *MissionControl) init() error { func (m *MissionControl) init() error {
log.Debugf("Mission control state reconstruction started") log.Debugf("Mission control state reconstruction started")
m.Lock()
defer m.Unlock()
start := time.Now() start := time.Now()
results, err := m.store.fetchAll() results, err := m.store.fetchAll()