From dbd95b1bbdab776796df02d887b32cd016867904 Mon Sep 17 00:00:00 2001 From: Chris Heppell Date: Thu, 31 Dec 2020 12:05:57 +0000 Subject: [PATCH] remove no longer valid comment The results returned from the in-memory map are copies, so there's no concern over concurrent map access anymore, as the internal memory-map is hidden and inaccessible to callers --- watchdog/watchdog.go | 1 - 1 file changed, 1 deletion(-) diff --git a/watchdog/watchdog.go b/watchdog/watchdog.go index d517e9e3..091a71e8 100644 --- a/watchdog/watchdog.go +++ b/watchdog/watchdog.go @@ -22,7 +22,6 @@ var ( ) // GetJSONEncodedServiceStatuses returns a list of core.ServiceStatus for each services encoded using json.Marshal. -// The reason why the encoding is done here is because we use a mutex to prevent concurrent map access. func GetJSONEncodedServiceStatuses() ([]byte, error) { serviceStatuses := store.GetAll() data, err := json.Marshal(serviceStatuses)