From 56238ebc609998dcf503dc4d0f14a7a064d2a24d Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 17 Mar 2021 12:06:12 +0100 Subject: [PATCH] routing: remove unnecessary lock in mission control init The init code is part of the instantiation, so there is no need for locking yet. --- routing/missioncontrol.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/routing/missioncontrol.go b/routing/missioncontrol.go index 2118c1b8..57ed666d 100644 --- a/routing/missioncontrol.go +++ b/routing/missioncontrol.go @@ -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()