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 committed 2021-03-17 12:06:12 +01:00
1 parent 89751f869f
commit 56238ebc60
1 file changed
-3
-3
View File
@@ -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()