mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 16:03:44 +01:00
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
This commit is contained in:
parent
678b78ac01
commit
dbd95b1bbd
@ -22,7 +22,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// GetJSONEncodedServiceStatuses returns a list of core.ServiceStatus for each services encoded using json.Marshal.
|
// 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) {
|
func GetJSONEncodedServiceStatuses() ([]byte, error) {
|
||||||
serviceStatuses := store.GetAll()
|
serviceStatuses := store.GetAll()
|
||||||
data, err := json.Marshal(serviceStatuses)
|
data, err := json.Marshal(serviceStatuses)
|
||||||
|
Loading…
Reference in New Issue
Block a user